Skip to content

Commit a4810a6

Browse files
committed
fix: standardize UPSTREAM_ORIGIN variable across environments in wrangler.toml
1 parent 021fd8a commit a4810a6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

wrangler.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cwd = "."
1212
[vars]
1313
ENVIRONMENT = "cloudflare"
1414
PORT = "3000"
15+
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
1516

1617
# D1 Database Binding - SQLite for Cloudflare
1718
[[d1_databases]]
@@ -38,7 +39,7 @@ compatibility_date = "2024-12-16"
3839
[env.development.vars]
3940
ENVIRONMENT = "cloudflare-dev"
4041
DEBUG = "true"
41-
PORT = "3000"
42+
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
4243

4344
[[env.development.d1_databases]]
4445
binding = "DB"
@@ -57,14 +58,14 @@ preview_id = "e1c34e6f806c419e885f45607e3b0a84"
5758

5859
# Production environment
5960
[env.production]
60-
name = "stats-prod"
61+
name = "stats"
6162
main = "src/worker.ts"
6263
compatibility_date = "2024-12-16"
6364

6465
[env.production.vars]
6566
ENVIRONMENT = "cloudflare-production"
6667
DEBUG = "false"
67-
PORT = "3000"
68+
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
6869

6970
[[env.production.d1_databases]]
7071
binding = "DB"

0 commit comments

Comments
 (0)