Skip to content

Commit

Permalink
split worker prod and dev config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish21 committed Jun 12, 2022
1 parent f1f8521 commit dc98ae5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
19 changes: 19 additions & 0 deletions packages/worker/wrangler.example.toml
Original file line number Diff line number Diff line change
@@ -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"]
10 changes: 0 additions & 10 deletions packages/worker/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit dc98ae5

Please sign in to comment.