Closed Glowin closed 4 months ago
@Glowin The adapter config inside astro.config.mjs
changed. This is documented in docs and in the Upgrade Guide https://github.com/withastro/adapters/releases/tag/%40astrojs%2Fcloudflare%4010.0.0
You need to update the config, and everything should work.
I would also suggest to add // @ts-check
at the top of the file, to make sure the configuration is checked against those issues.
Astro Info
Describe the Bug
After running
npm run dev
, an error occurred when accessing the page, and the error message is as follows. However, after downgrading@astro/cloudflare
to9.1.0
, it runs correctly.What's the expected result?
I hope the same code can produce the same results as version 9.1.0 of @astro/cloudflare.
Link to Minimal Reproducible Example
https://github.com/Glowin/cf-d1
Participation