Dynamore
Dynamore
CDCloudflare Developers
Created by Dynamore on 4/22/2024 in #pages-help
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/config
export 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/config
export default defineConfig({
output: 'hybrid',
adapter: cloudflare({
imageService: 'passthrough',
}),
image: {
service: passthroughImageService(),
},
integrations: [react(), tailwind()],
trailingSlash: 'always',
})
3 replies