diff --git a/packages/one/src/vite/plugins/fileSystemRouterPlugin.tsx b/packages/one/src/vite/plugins/fileSystemRouterPlugin.tsx index 7446a068a..ee5cd54d1 100644 --- a/packages/one/src/vite/plugins/fileSystemRouterPlugin.tsx +++ b/packages/one/src/vite/plugins/fileSystemRouterPlugin.tsx @@ -197,6 +197,9 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin const routesAndLayouts = [ ...new Set( handleRequest.manifest.pageRoutes.flatMap((route) => { + if (route.isNotFound) return [] + // sitemap + if (!route.file) return [] return [ join('./app', route.file), ...(route.layouts?.flatMap((layout) => {