diff --git a/src/core/scan.ts b/src/core/scan.ts index e04a70704e..4e5a192619 100644 --- a/src/core/scan.ts +++ b/src/core/scan.ts @@ -112,6 +112,11 @@ export async function scanServerRoutes( route = route.replace(/\/index$/, "") || "/"; + if (/[a-z]+-[a-z]+/.test(route)) { + console.warn( + `Warning: Route "${route}" contains kebab-case parameters which will return 404.` + ); + } return { handler: file.fullPath, lazy: true,