You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
App broken with latest v3.0.261029-rc due to "Unknown suffix" errors #4993
[nitro 2:30:43 PM] ERROR Unknown suffix .cors in middleware/1.cors.ts. Nitro reserves dotted suffixes in scanned file names; known file extensions (e.g. .json, .md) are kept as-is. Add "cors" to the scanSuffixes config to keep it as part of the name. The file is ignored.
Also I do have other files with . notation that are no routes but throw errors:
Unknown suffix .dto in routes/notion-sdk/dbs/inventar/response.dto.ts. Nitro reserves dotted suffixes in scanned file names; known file extensions (e.g. .json, .md) are kept as-is. Add "dto" to the scanSuffixes config to keep it as part of the name. The file is ignored.
Numbered middleware like middleware/1.cors.ts is fixed in #4995 and will ship in the next release. For routes with other dotted suffixes like routes/.../response.dto.ts, add the suffix to your config with scanSuffixes: ["dto"], so the file is served as /.../response.dto.
Activity
pi0x commentedon Nov 1, 2026
Numbered middleware like
middleware/1.cors.tsis fixed in #4995 and will ship in the next release. For routes with other dotted suffixes likeroutes/.../response.dto.ts, add the suffix to your config withscanSuffixes: ["dto"], so the file is served as/.../response.dto.Triaged with AI assistance.