/** * Every address but the landing's: a page (`/sobre-nosotros`), a record * (`/proyectos/x`, `/en/team/x`), or nothing at all. * * One catch-all rather than a route per shape. Analog registers each loader as * an internal route, and Nitro's router cannot hold two parameters of * different names at the same depth — `/:prefix/:slug` beside * `/:prefix/:section/:slug` left the first unreachable. `resolveRoute` sorts * the shapes out instead, and an address it does not recognise loads as a 404. */ import type { PageServerLoad } from '@analogjs/router'; import { loadRoutedPage, type RoutedPageData } from '../core/routed-page'; export const load = async ({ params, }: PageServerLoad): Promise => loadRoutedPage(`/${params?.['path'] ?? ''}`);