Skip to content

Commit 644a446

Browse files
committed
feat: update wrangler configuration to define allowed origins for production and development
1 parent 2b68d8e commit 644a446

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/api/wrangler.toml.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ database_name = "tabitabi"
1111
database_id = "PLACEHOLDER_DATABASE_ID"
1212
migrations_dir = "../../migrations"
1313

14+
[vars]
15+
ALLOWED_ORIGINS = "*"
16+
1417
[env.production]
1518
name = "tabitabi-api"
1619

20+
[env.production.vars]
21+
ALLOWED_ORIGINS = "https://tabitabi.pages.dev"
22+
1723
[env.production.observability]
1824
enabled = true
1925

0 commit comments

Comments
 (0)