Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lilouartz opened this issue Apr 20, 2024 · 4 comments
Open

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

lilouartz opened this issue Apr 20, 2024 · 4 comments

Comments

@lilouartz
Copy link

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
Copy link
Owner

kiliman commented Apr 20, 2024

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

@kunanyi
Copy link

kunanyi commented May 24, 2024

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
Copy link

kunanyi commented May 24, 2024

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
Copy link
Owner

kiliman commented May 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants