#Javascript decorators are not currently supported - Cloudflare pages

1 messages · Page 1 of 1 (latest)

foggy spoke
#

Need help with deploying to cloudflare pages

celest island
#

Are you using the Cloudflare Adapter?

foggy spoke
#

Here's my config

foggy spoke
# celest island Are you using the Cloudflare Adapter?
// @ts-check
import { defineConfig } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";

// https://astro.build/config
export default defineConfig({
  output: "server",
  adapter: cloudflare({
    platformProxy: {
      enabled: true,
    },
  }),
  integrations: [react(), tailwind(), partytown()],
});