remix-flat-routes
remix-flat-routes copied to clipboard
Remix package to define routes using the flat-routes convention
Thanks for creating this. I love this approach to v2 routing. I converted my application over to embrace it and unfortunately when I deployed on S3 my route files were...
I have nested directories in my colocated routes folders that get included in my routes, but the other files do not. My assumption is they would be excluded from the...
This PR addresses the compatibility issue with Node.js v14 in the conditional check for route within the routeSegments array. The original code utilized the at() method, which is only supported...
1. Error message handling: Previously, error messages were handled inline within the main function, making the code harder to read and maintain. This PR introduces a separate function, printErrorAndExit, which...
Given `routes/[_]image/index.ts` or `routes/[_]image.ts`, the generated routes are ``` ``` I'm on version 0.5.8
The type of parameter in the fixupIndexRoutes function changed from any to RouteManifest. This is because I think it is better to increase safety by specifying a specific type rather...
In the context of [this](https://github.com/kiliman/remix-flat-routes#nested-folders-with-flat-files-convention--new-in-v051), what do the following mean? - What does a underscore prefix on folders mean? Will it match literally to _folder on the URL path (ie...
My directory structure: `app/routes/[__]+/auth+/$path.tsx` The route I expect to get: `/__/auth/:path` But the actual route is: ```json { "id": "routes/__+/auth+/$path", "path": "auth/:path", "file": "routes/__+/auth+/$path.tsx" } ```
Can you please update the README I spent 5 hours trying to add the configuration to `remix.config.js`, but it turns out I need to add it to `vite.config.js`. I know...