-
-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
when there's an empty path in staticPaths, the error can be reproduced.
// _api/llms.mdx/docs/[...slugs].ts
import { ApiContext } from 'waku/router';
import { unstable_notFound } from 'waku/router/server';
export async function GET(_: Request, { params }: ApiContext<'/llms.mdx/docs/[...slugs]'>) {
const slugs = params.slugs;
console.log(slugs);
return new Response('hello world', {
headers: {
'Content-Type': 'text/markdown',
},
});
}
export async function getConfig() {
return {
render: 'static' as const,
staticPaths: [[], ['test']],
} as const;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels