Layout route with `routeFilePrefix `
I'm using vite plugin to generate routes from files
How do I create layout route when using
I have following folder structure?
Basically I want all routes under
Example:
1. If I visit
2. If I visit
It works like this
But it makes
My
Here's my config:
How do I create layout route when using
routeFilePrefix?I have following folder structure?
Basically I want all routes under
+workers to be inside wrapped by +_layout route and display 404 if it's not matched. I can't seem to get it working...Example:
1. If I visit
/workers/dashboard/ -> +workers/+dashboard/+index.tsx (inside +_layout)2. If I visit
/workers/ -> display 404It works like this
But it makes
/workers -> a valid route which will display empty page but I want it to be 404 in this caseMy
+_layout route:Here's my config: