-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cloudflare Adapter Directory Mode not working as expected #6018
Comments
There are several issues (but I believe this is the main one) ... The other issue with pre-rendering enabled is if your site has more than a few pages, your |
Hi @benadam11 lets work through it 😄 what you described is correct, apparently there was a renaming of the For the routes, I implemented a simple algo which is just adding all files from the |
@AirBorne04 sorry about that, this is on my board to fix. If you have a quick fix feel free to submit a PR. The reason why the extension was changed to However, it gets renamed to |
ok, understood, no problem, I already found the cause I will send a PR |
@AirBorne04 ok thank you! Will review your PR as soon as it lands as this is an urgent regression to fix. I would put off the |
I see where the problem is too, working on fix. |
What version of
astro
are you using?2.0.2
Are you using an SSR adapter? If so, which one?
Cloudflare
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Running
astro build
should bundle the API routes and create afunctions
directory with a file called[[path]].js
. With version 6.1 afunctions
dir is created, but the[[path]].js
file is not (instead it is creating a_worker.js
file indist
).Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-xngtpq
Participation
The text was updated successfully, but these errors were encountered: