FileRoutes
Edit this pageFileRoutes
is a component that creates a Route
for each file in the /src/routes
directory.
This creates a route
export to define the route configuration for the router of your choice.
For example, using solid-router
would look like the following:
See the SolidStart routing guide for more details.
caution:
If removing the FileRoutes
component from your app.tsx
file, you will need to manually add all of your routes.
While this is possible it does come with tradeoffs. For example, optimizations such as preloaded script tags will no longer be available.