Skip to content

Blank page on Cloudflare Pages #9

@appzoho

Description

@appzoho

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions