withastro / adapters

Home for Astro's core maintained adapters
47 stars 26 forks source link

fix(cloudflare): _routes.json deduplication #171

Closed alexanderniebuhr closed 4 months ago

alexanderniebuhr commented 4 months ago

Changes

Testing

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 88a1f494ae4128c023298d495b2e2fd5677ab725

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 15 packages | Name | Type | | ---------------------------------------------- | ----- | | @astrojs/cloudflare | Patch | | @test/astro-cloudflare-dev-runtime-pages | Patch | | @test/astro-cloudflare-dev-runtime-workers | Patch | | @test/astro-cloudflare-directory-mode | Patch | | @test/astro-cloudflare-external-image-service | Patch | | @test/astro-cloudflare-function-per-route | Patch | | @test/astro-cloudflare-hybrid | Patch | | @test/astro-cloudflare-no-output | Patch | | @test/astro-cloudflare-prerender | Patch | | @test/astro-cloudflare-routes-json | Patch | | @test/astro-cloudflare-wasm-function-per-route | Patch | | @test/astro-cloudflare-wasm-directory | Patch | | @test/astro-cloudflare-wasm | Patch | | @test/astro-cloudflare-with-solid-js | Patch | | @test/astro-cloudflare-wrangler-runtime | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

alexanderniebuhr commented 4 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

MehrdadKhnzd commented 4 months ago

Hi! It still doesn't work, I still get the error I used to get: Error: Failed to publish your Function. Got error: Error 8000057: Overlapping rules in _routes.json are not allowed.

alexanderniebuhr commented 4 months ago

@MehrdadKhnzd can you please submit a minimal reproduction in a new issue?

MehrdadKhnzd commented 4 months ago

@alexanderniebuhr The problem is that I couldn't. I tried to reproduce it two times, but I wasn't successful when I partially recreated some of the conflicting structures of my project. I even thought it might be due to some other added plugins, but that wasn't the case. I might give it another try with a complete replication of my file structure to see how it goes, but it will be really time-consuming. Do you know when v10 is going to be ready?