Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Jan 12, 2025
1 parent 95ae4de commit 3b1ad82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/one/src/vite/plugins/fileSystemRouterPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 3b1ad82

Please sign in to comment.