From 5a712e70ffa7aac02ae0765d4b2c2b0b38621b11 Mon Sep 17 00:00:00 2001 From: Edmund Hung Date: Tue, 5 Nov 2024 14:52:26 +0000 Subject: [PATCH] fix(create-cloudflare): enable nodejs_compact on astro template (#7171) --- .changeset/famous-chairs-sin.md | 5 +++++ .../templates/astro/templates/wrangler.toml | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/famous-chairs-sin.md diff --git a/.changeset/famous-chairs-sin.md b/.changeset/famous-chairs-sin.md new file mode 100644 index 000000000000..ff890b4b82b9 --- /dev/null +++ b/.changeset/famous-chairs-sin.md @@ -0,0 +1,5 @@ +--- +"create-cloudflare": patch +--- + +fix: missing nodejs_compact flag on astro template diff --git a/packages/create-cloudflare/templates/astro/templates/wrangler.toml b/packages/create-cloudflare/templates/astro/templates/wrangler.toml index a03a506b7081..70bd7c7606e2 100644 --- a/packages/create-cloudflare/templates/astro/templates/wrangler.toml +++ b/packages/create-cloudflare/templates/astro/templates/wrangler.toml @@ -1,6 +1,7 @@ #:schema node_modules/wrangler/config-schema.json name = "" compatibility_date = "" +compatibility_flags = ["nodejs_compat"] pages_build_output_dir = "./dist" # Automatically place your workloads in an optimal location to minimize latency.