From 74f4656123863089d0df86c2ab916262df59f26f Mon Sep 17 00:00:00 2001 From: Josh Jarvis Date: Thu, 9 Jun 2022 16:21:53 +0100 Subject: [PATCH] chore: add Wrangler worker env for Josh (#1351) * chore: Add Wrangler worker env for Josh. * chore: Add GATEWAY_URL to josh wrangler config. * chore: Add default `GATEWAY_URL` var to wrangler template. --- packages/api/wrangler.toml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index 65aa6baec8..2181a0616a 100644 --- a/packages/api/wrangler.toml +++ b/packages/api/wrangler.toml @@ -1,7 +1,7 @@ # web3.storage wrangler config. name = "web3-storage" -# `javascript` means our we'll send pre-built javascript code. +# `javascript` means our we'll send pre-built javascript code. # ...as opposed to `webpack` where wrangler builds our code for us. type = "javascript" @@ -131,6 +131,14 @@ vars = { CLUSTER_API_URL = "https://alexandra-cluster-api-web3-storage.loca.lt", [env.alexandra.durable_objects] bindings = [{ name = "NAME_ROOM", class_name = "NameRoom0" }] +[env.josh] +workers_dev = true +account_id = "b649c9389ef9c1d318ac2945b2415046" +vars = { CLUSTER_API_URL = "https://josh-cluster-api-web3-storage.loca.lt", PG_REST_URL = "https://josh-postgres-api-web3-storage.loca.lt", ENV = "dev", GATEWAY_URL = "https://ipfs.io" } + +[env.josh.durable_objects] +bindings = [{ name = "NAME_ROOM", class_name = "NameRoom0" }] + # Add your env here. Override the the values you need to change. # Create your env name as the value of `whoami` on your system, so you can run `npm start` to run in dev mode. @@ -138,7 +146,7 @@ bindings = [{ name = "NAME_ROOM", class_name = "NameRoom0" }] # [env.${whoami}] # workers_dev = true # account_id = "