-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hi,
I tried to deployed Astrofront to Cloudflare Pages completely but the blank page. I can access /robots.txt only
I added the following to astro.config.mjs
import { defineConfig, passthroughImageService } from 'astro/config';
import cloudflare from "@astrojs/cloudflare";
adapter: cloudflare({
imageService: 'cloudflare'
}),
image: {
service: passthroughImageService()
},
vite: {
resolve: {
alias: process.env.NODE_ENV === 'production' && {
"react-dom/server": "react-dom/server.edge", // error MessageChannel API
},
},
}
I tried node 20.10.0 and added API credentials: Storefront API access token and API secret key. Many thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels