Closed mrthiti closed 5 months ago
Latest commit: b716b01acae8e22c857b50553f841102bb49cc7f
The changes in this PR will be included in the next version bump.
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
If we have client pre render such as generate image route that It error at build time. I think if we config onExternal=true that It transforms all dependencies, and it caused error below.
@mrthiti I'm not sure why qrcode would break because of this setting. It's hard to say whether this is the right solution without understanding the problem first.
Could you share a minimal project that breaks with the cloudflare adapter?
Hi @lilnasy This is mini project. Could you please "npm run build", it will error. https://github.com/mrthiti/astro-cloudflare-root-cause
@mrthiti Thank you for your reproduction, I'll create a new issue for it. The solution you proposed doesn't work for Cloudflare, because Cloudflare needs to have dependencies inlined on server build, which your solution disables.
Changes
Docs
Should remove this.