From f4fdceaf60028f3a8a30fcd0c397c6adc85b64b1 Mon Sep 17 00:00:00 2001 From: earth2travis Date: Wed, 19 Feb 2025 23:59:07 -0600 Subject: [PATCH 1/2] fix: resolve wrangler.toml production vars conflict - Consolidate production environment variables under [env.production.vars] - Remove duplicate environment configuration - Fix Cloudflare Pages deployment error --- wrangler.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wrangler.toml b/wrangler.toml index 69bdf61..d475d87 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -9,9 +9,6 @@ NEXT_PUBLIC_GRAPH_KEY = "" NEXT_PUBLIC_URL = "http://localhost:3000" # Production environment variables -[env.production] -vars = { NEXT_PUBLIC_URL = "https://proposals.farcastle.net/" } - -# Make sure secrets are properly handled [env.production.vars] +NEXT_PUBLIC_URL = "https://proposals.farcastle.net/" NEXT_PUBLIC_GRAPH_KEY = "" From 28e00f13be020f9e595f53419572f9ba1d69bbde Mon Sep 17 00:00:00 2001 From: earth2travis Date: Thu, 20 Feb 2025 00:05:34 -0600 Subject: [PATCH 2/2] fix: remove duplicate env var from wrangler.toml - Remove NEXT_PUBLIC_GRAPH_KEY from wrangler.toml - Let Cloudflare dashboard manage sensitive environment variables - Fix deployment error with duplicate binding names --- wrangler.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/wrangler.toml b/wrangler.toml index d475d87..ed3aa81 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -5,10 +5,8 @@ pages_build_output_dir = ".vercel/output/static" # Base environment variables (development) [vars] -NEXT_PUBLIC_GRAPH_KEY = "" NEXT_PUBLIC_URL = "http://localhost:3000" # Production environment variables [env.production.vars] NEXT_PUBLIC_URL = "https://proposals.farcastle.net/" -NEXT_PUBLIC_GRAPH_KEY = ""