diff --git a/integration/helpers/cf-template/wrangler.toml b/integration/helpers/cf-template/wrangler.toml index f12c0a92335..cbbc0cf510c 100644 --- a/integration/helpers/cf-template/wrangler.toml +++ b/integration/helpers/cf-template/wrangler.toml @@ -1,5 +1,7 @@ name = "remix-cloudflare-workers" type = "javascript" +compatibility_date = "2022-04-05" +compatibility_flags = ["streams_enable_constructors"] zone_id = "" account_id = "" diff --git a/templates/cloudflare-pages/package.json b/templates/cloudflare-pages/package.json index 767efdaea07..c0a83e51930 100644 --- a/templates/cloudflare-pages/package.json +++ b/templates/cloudflare-pages/package.json @@ -8,7 +8,7 @@ "dev": "remix build && run-p \"dev:*\"", "start": "cross-env NODE_ENV=production npm run wrangler", "typecheck": "tsc -b", - "wrangler": "wrangler pages dev ./public --compatibility-flags streams_enable_constructors" + "wrangler": "wrangler pages dev ./public" }, "dependencies": { "@remix-run/cloudflare": "*", diff --git a/templates/cloudflare-pages/wrangler.toml b/templates/cloudflare-pages/wrangler.toml new file mode 100644 index 00000000000..ecd695e5a65 --- /dev/null +++ b/templates/cloudflare-pages/wrangler.toml @@ -0,0 +1,2 @@ +compatibility_date = "2022-04-05" +compatibility_flags = ["streams_enable_constructors"] diff --git a/templates/cloudflare-workers/wrangler.toml b/templates/cloudflare-workers/wrangler.toml index da847772c99..6dae0da58da 100644 --- a/templates/cloudflare-workers/wrangler.toml +++ b/templates/cloudflare-workers/wrangler.toml @@ -4,9 +4,11 @@ workers_dev = true main = "./build/index.js" # https://developers.cloudflare.com/workers/platform/compatibility-dates compatibility_date = "2022-04-05" +compatibility_flags = ["streams_enable_constructors"] [site] bucket = "./public" [build] command = "npm run build" +