Skip to content

Commit

Permalink
add wrangler.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
aabassiouni committed May 20, 2024
1 parent 96d25fc commit 21d7e14
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/workers/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ dist
.dev.vars

# Change them to your taste:
wrangler.toml
package-lock.json
yarn.lock
# pnpm-lock.yaml
15 changes: 15 additions & 0 deletions apps/workers/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name = "entrybase"
main = "src/worker.ts"
compatibility_date = "2023-12-01"


[vars]
REALTIME_API_URL = "http://localhost:9999"

[env.preview]
vars = { ENVIRONMENT = "preview", REALTIME_API_URL = "https://entrybase-realtime-preview.fly.dev" }
routes = [{ pattern = "api-preview.entrybase.app", custom_domain = true }]

[env.production]
vars = { ENVIRONMENT = "production", REALTIME_API_URL = "https://realtime.entrybase.app" }
routes = [{ pattern = "api.entrybase.app", custom_domain = true }]

0 comments on commit 21d7e14

Please sign in to comment.