-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Astro Cloudflare - Failed to publish your Function. Got error: Error 8000057: Overlapping rules in _routes.json
are not allowed.
#135
Comments
I recently started to test this. I'm encountering the
Here's my Astro Info:
Thus far, I'm unable to isolate where the point of failure is so far. I have several That probably isn't enough to jog any ideas, but on the chance it provides a eureka moment about some edge cases, I thought I'd provide some preliminary feedback. If you have any tips/thoughts, let me know. Thanks! |
The overlapping issue should be fixed. You could provide a reproduction example, and I can check. |
Hi! I just started to face the same issue. It was working until recently without any problems. |
I'm sorry to hear that. |
@alexanderniebuhr I have the same issue. Astro supports these "overlaps", but it seems these generated _routes don't. Is that something that cloudflare can/will improve, or is that a fundamental limitation and we have to work around it? My build error:
|
Generally it is not an issue. Please also create an example for your specific case. |
Any updates on this? @EskelCz were you able to find a work around? |
The workaround is to provide your own custom |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Hello, I'm developing an Astro website with static pages generated at the following paths:
/companies/index.astro
/companies/[slug].astro
/blog/index.astro
/blog/[slug].astro
Any other page is server-side rendered.
In order to avoid the
_routes.json
100-entries limit error addressed in withastro/astro#6516, I'm manually excluding the static paths as described in the docs:The redundant paths
/companies/
and/blog/
are not stripped away from the generated_routes.json
if I have set the following redirect in404.astro
:Causing the following deploy error (as
/companies/*
and/blog/*
are also present in the_routes.json
file):Generated routes.json
What's the expected result?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-cykvsk?file=dist%2F_routes.json
Participation
The text was updated successfully, but these errors were encountered: