What is the recommended configuration for using environment specific service bindings? #3690
Unanswered
alexgoldsmith
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a config like the below but am triggering an error when I attempt to deploy.
name = "gateway"
account_id = "----"
compatibility_date = "2022-07-24"
main = "server/entry.ssr.js"
[env.dev]
vars = { ENVIRONMENT = "dev" }
route = "dev.example.site"
custom_domain = true
zone_name = "dev.example.site"
services = [
{ binding = "auth", service = "auth-dev"},
{ binding = "home", service = "home-dev"}
]
[env.staging]
vars = { ENVIRONMENT = "staging" }
route = "staging.example.site"
custom_domain = true
zone_name = "staging.example.site"
services = [
{ binding = "auth", service = "auth-staging"},
{ binding = "home", service = "home-staging"}
]
[env.production]
vars = { ENVIRONMENT = "production" }
route = "example.site"
custom_domain = true
zone_name = "greenshell.site"
services = [
{ binding = "auth", service = "auth-production"},
{ binding = "home", service = "home-production"}
]
Beta Was this translation helpful? Give feedback.
All reactions