Skip to content

Commit 9abaade

Browse files
committed
fix: update cloudflare provider name and alias condition for clarity
1 parent 8346505 commit 9abaade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const providers = {
1313
vercel: vercel({
1414
edgeMiddleware: false,
1515
}),
16-
cloudflare: cloudflare({
16+
cloudflare_workers: cloudflare({
1717
imageService: 'compile',
1818
workerEntryPoint: {
1919
path: 'src/worker.ts',
@@ -42,7 +42,7 @@ export default defineConfig({
4242
// Use react-dom/server.edge instead of react-dom/server.browser for React 19.
4343
// Without this, MessageChannel from node:worker_threads needs to be polyfilled.
4444
alias: import.meta.env.PROD
45-
&& (adapterProvider === 'cloudflare' || process.env.DOCKER)
45+
&& (adapterProvider === 'cloudflare_workers' || process.env.DOCKER)
4646
&& {
4747
'react-dom/server': 'react-dom/server.edge',
4848
},

0 commit comments

Comments
 (0)