Error: Failed to publish your Function. Got error: Uncaught ReferenceError: _page1 is not defined
I am building my website with Astro. I have wordpress setup as a headless cms within the site. when I run the build in my localhost, it works just fine, but in cloudflare, this error shows up. any ideas?
this is my astro config
import cloudflare from '@astrojs/cloudflare'import react from '@astrojs/react'import tailwind from '@astrojs/tailwind'import { defineConfig, passthroughImageService } from 'astro/config'// https://astro.build/configexport default defineConfig({ output: 'hybrid', adapter: cloudflare({ imageService: 'passthrough', }), image: { service: passthroughImageService(), }, integrations: [react(), tailwind()], trailingSlash: 'always',})
import cloudflare from '@astrojs/cloudflare'import react from '@astrojs/react'import tailwind from '@astrojs/tailwind'import { defineConfig, passthroughImageService } from 'astro/config'// https://astro.build/configexport default defineConfig({ output: 'hybrid', adapter: cloudflare({ imageService: 'passthrough', }), image: { service: passthroughImageService(), }, integrations: [react(), tailwind()], trailingSlash: 'always',})
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
CD
Cloudflare Developers
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news