From b2b1c8583f3f4ba0f07a3d9ca02278d23c262dba Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 3 Jan 2023 09:50:03 +0000 Subject: [PATCH] fix: api wrangler routes need pattern (#210) --- packages/api/wrangler.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index f7416dc..5c466dc 100644 --- a/packages/api/wrangler.toml +++ b/packages/api/wrangler.toml @@ -11,7 +11,9 @@ command = "npm run build" [env.production] # name = "nftstorage-link-api-production" account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account -route = "api.nftstorage.link/*" +routes = [ + { pattern = "api.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" } +] kv_namespaces = [ { binding = "DENYLIST", id = "785cf627e913468ca5319523ae929def" } ] @@ -37,7 +39,9 @@ environment = "production" [env.staging] # name = "nftstorage-link-api-staging" account_id = "fffa4b4363a7e5250af8357087263b3a" # Protocol Labs CF account -route = "api-staging.nftstorage.link/*" +routes = [ + { pattern = "api-staging.nftstorage.link/*", zone_id = "c7795a0adce7609a95d62fec04705aff" } +] kv_namespaces = [ { binding = "DENYLIST", id = "f4eb0eca32e14e28b643604a82e00cb3" } ]