From 898f1982cc4452f6dcceeb1952c5460996c50c44 Mon Sep 17 00:00:00 2001 From: joshJarr Date: Tue, 24 May 2022 12:15:16 +0100 Subject: [PATCH 1/3] chore: Add Wrangler worker env for Josh. --- packages/api/wrangler.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index 65aa6baec8..81b318f639 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" } + +[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. From f08bc1bd9abbcf7f4905d9ca3d6ae2c64aff3f25 Mon Sep 17 00:00:00 2001 From: joshJarr Date: Wed, 25 May 2022 14:26:55 +0100 Subject: [PATCH 2/3] chore: Add GATEWAY_URL to josh wrangler config. --- packages/api/wrangler.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index 81b318f639..c72a012a17 100644 --- a/packages/api/wrangler.toml +++ b/packages/api/wrangler.toml @@ -134,7 +134,7 @@ 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" } +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" }] From c9a6576a7cd340e02ab8788f20cfde268c38d31a Mon Sep 17 00:00:00 2001 From: joshJarr Date: Thu, 26 May 2022 10:37:07 +0100 Subject: [PATCH 3/3] chore: Add default `GATEWAY_URL` var to wrangler template. --- packages/api/wrangler.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index c72a012a17..2181a0616a 100644 --- a/packages/api/wrangler.toml +++ b/packages/api/wrangler.toml @@ -146,7 +146,7 @@ bindings = [{ name = "NAME_ROOM", class_name = "NameRoom0" }] # [env.${whoami}] # workers_dev = true # account_id = "