kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

Does remix-flat-routes work with @remix-run/cloudflare ? #117

Open lilouartz opened 2 months ago

lilouartz commented 2 months ago

Been trying to setup my page with Cloudflare Wrangler but for some reason keep getting 404 errors and I am wondering if it is because I am using remix-flat-routes.

kiliman commented 2 months ago

Hmm. I don't think it should be an issue. What happens if you run npx remix routes?

kunanyi commented 1 month ago

Same here, 404s

Just going to try to run the migrator. Previously didn't have a remix.conf.js (should I have?) and I think I need to use imports rather than require... still mucking about with it atm

kunanyi commented 1 month ago

OK simply had to rename the .js to .cjs

My index in /flatroutes isn't being picked up even after using the migration tool, so not sure

kiliman commented 1 month ago

Hmm.. how are your index routes named? Are they _index?