Astro v4.6.3
Node v20.12.2
System Linux (x64)
Package Manager npm
Output server
Adapter @astrojs/cloudflare
Integrations @astrojs/sitemap
Describe the Bug
When deploying in cloudflare, deployment failed at the last stage, after all the assets have been successfully uploaded
2024-04-21T14:57:51.544098Z Uploading... (122/122)
2024-04-21T14:57:51.544756Z ✨ Success! Uploaded 0 files (122 already uploaded) (0.30 sec)
2024-04-21T14:57:51.544952Z
2024-04-21T14:57:51.845128Z ✨ Upload complete!
2024-04-21T14:57:54.075874Z Success: Assets published!
2024-04-21T14:57:55.996116Z Error: Failed to publish your Function. Got error: Uncaught ReferenceError: _page2 is not defined
at bundledWorker-0.21381334859200396.mjs:2120:44
I tried reverting back to @astrojs/cloudflare 10.1.0 and the deployment successfully finished. All the functions, middlewares, and workers work perfectly without a hitch. As soon as I upgraded it back to 10.2.0, the problem persists.
What's the expected result?
Finish the deployment successfully with the latest version of cloudflare adapter.
Link to Minimal Reproducible Example
You have to deploy to cloudflare to reproduce it
Participation
[ ] I am willing to submit a pull request for this issue.
Astro Info
Describe the Bug
When deploying in cloudflare, deployment failed at the last stage, after all the assets have been successfully uploaded
I tried reverting back to @astrojs/cloudflare 10.1.0 and the deployment successfully finished. All the functions, middlewares, and workers work perfectly without a hitch. As soon as I upgraded it back to 10.2.0, the problem persists.
What's the expected result?
Finish the deployment successfully with the latest version of cloudflare adapter.
Link to Minimal Reproducible Example
You have to deploy to cloudflare to reproduce it
Participation