Consider treating cloudflare:sockets
as external in rollupOptions set in @astrojs/cloudflare
#407
Closed
1 task done
Labels
Describe the Bug
When people try to build Astro apps that use the Postgres.js driver, they see this error at build time:
https://x.com/masylum/status/1839743841252905467
Yes — people can fix this in userland by explicitly setting their vite config to treat
cloudflare:sockets
as external:If I understand the adapter correctly, it seems like there is an opportunity here to do this for people automatically, and reduce confusion and take this problem out of userspace?
https://github.com/withastro/adapters/blob/main/packages/cloudflare/src/index.ts#L246
Participation
The text was updated successfully, but these errors were encountered: