Open adaboese opened 8 months ago
Update your config and pass ignoredRouteFiles
in options to ignore files starting with .
.
routes: async defineRoutes => {
return flatRoutes('routes',
defineRoutes,
{ ignoredRouteFiles: ['**/.*'] },
)},
https://github.com/kiliman/remix-flat-routes#%EF%B8%8F-configuration
I think this should be addressed somewhere (either in the code or README), because the first step you convert route files would be batch-renaming files (to remove _auth.
prefix) and many likely do it using the macOS's feature, which generates .DS_Store
files.
This is a major onboarding / migration issue that could make people give up using this incredibly useful library.
My app keeps crashing with an error:
This is due to
DS_Store
being created in the routes directory by the OS.Temporarily fixes the issue, but I would rather have an option to just ignore these files.