-
Notifications
You must be signed in to change notification settings - Fork 736
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
🐛 BUG: Inconsistent behaviour in _routes.json
. Also, no way to specify index file.
#2046
Comments
Inconsistent behaviour in
_routes.json`. Also, no way to specify index file._routes.json
. Also, no way to specify index file.
Thanks for the report. Sounds like a bug to me! cc'ing in the experts: @jahands and @CarmenPopoviciu |
@Mexican-Man thx so much for reporting this!
Can you please give me more details? Which I have tested (in MacOS) your
|
I was using a SvelteKit project (
Of course I can't view logs once deployed, but when using
@CarmenPopoviciu where you able to get EDIT: To clarify, the errors I get locally and remotely are 404 errors, implying the routes from the |
@Mexican-Man thank you for all the details <3! I've tested with a basic Is your project available somewhere for me to have a look? Or, compared to the test repo I mentioned above, is there anything in particular that stands out to you? |
@Mexican-Man just FYI I pushed a fix for is |
Sorry. I don't have it available right now, but I could potentially put something up. Also @CarmenPopoviciu, testing with |
Hi any update on this, Im trying to deploy pages but its not respectin my
this file is generated where it removed directories until under the 99 limit theoretically there is a smarter way. Anyway the problem is when i run the project it still runs my middleware for everything even my public assets which should be excluded |
It seams easy enoug to implement If the exclueded files bypas midalware then should work as intnteded on dev and production psudo code
|
What version of
Wrangler
are you using?2.1.12
What operating system are you using?
Windows
Describe the Bug
When using a
_routes.json
, the following:–results in all paths being excluded.
What I expected to happen was
/
(index.html) would be excluded, while everything else was included. I imagine this isn't intentional, as this sounds like what should happen if both include and exclude were set to/*
, except that Wrangler won't let you do that.That being said, I cannot find a way to reference a root level index file, as
/
doesn't work.I tested this both on Wrangler and deployed; the behaviour is the same.
The text was updated successfully, but these errors were encountered: