--- import Root from '../../layouts/Root.astro'; import Main from '../../layouts/Bundle.astro'; import CareerProgram from '../../sections/global/career-program/career-program.astro'; import CareerSection from '../../sections/global/career-section/career-section.astro'; import Cta from '../../sections/global/cta/cta.astro'; import { getCareers } from '../../libs/careers'; import type { Careers } from '../../types/codyops-careers'; import { Image } from 'astro:assets'; export async function getStaticPaths() { const careers = await getCareers(); return careers.map((career: Careers) => { return { params: { slug: career.slug }, props: { career }, }; }); } interface Props { career: Careers; } const { career } = Astro.props; // Dynamically import the description and features components based on the slug const DescriptionComponent = (await import(`../../sections/${career.slug}/${career.slug}-description.astro`)).default; const FeaturesComponent = (await import(`../../sections/${career.slug}/${career.slug}-features.astro`)).default; ---