From dc98ae5aef143ccab390697ef7fd8b5382b9f6c4 Mon Sep 17 00:00:00 2001 From: Girish21 Date: Sun, 12 Jun 2022 13:07:08 +0530 Subject: [PATCH] split worker prod and dev config file --- packages/worker/wrangler.example.toml | 19 +++++++++++++++++++ packages/worker/wrangler.toml | 10 ---------- 2 files changed, 19 insertions(+), 10 deletions(-) create mode 100644 packages/worker/wrangler.example.toml diff --git a/packages/worker/wrangler.example.toml b/packages/worker/wrangler.example.toml new file mode 100644 index 0000000..6075541 --- /dev/null +++ b/packages/worker/wrangler.example.toml @@ -0,0 +1,19 @@ +compatibility_date = "2022-05-22" +main = "src/index.ts" + +workers_dev = true + +[site] +bucket = "../remix-app/public" + +[env.dev] +vars = {SESSION_SECRET = "should-be-secure-in-prod"} + +[env.dev.durable_objects] +bindings = [ + {name = "COUNTER", class_name = "CounterDurableObject"}, +] + +[[migrations]] +tag = "v1" +new_classes = ["CounterDurableObject"] diff --git a/packages/worker/wrangler.toml b/packages/worker/wrangler.toml index 8a1d3df..8e4ad57 100644 --- a/packages/worker/wrangler.toml +++ b/packages/worker/wrangler.toml @@ -2,19 +2,9 @@ compatibility_date = "2022-05-22" main = "src/index.ts" name = "remix-cloudflare-template" -workers_dev = true - [site] bucket = "../remix-app/public" -[env.dev] -vars = {SESSION_SECRET = "should-be-secure-in-prod"} - -[env.dev.durable_objects] -bindings = [ - {name = "COUNTER", class_name = "CounterDurableObject"}, -] - [durable_objects] bindings = [ {name = "COUNTER", class_name = "CounterDurableObject"},