krondor
05/22/2023, 9:03 PMservices = [
{ binding = "blockstore_service", service = "blucket-blockstore-staging", environment = "staging" },
{ binding = "blockstore_service", service = "blucket-blockstore-production", environment = "production" },
{ binding = "blockstore_service", service = "blucket-blockstore-dev", environment = "dev" },
]
After publishing, however, I don't see the service bound. Is this expected? What's the point of specifying bindings in wrangler.toml if so?HardAtWork
05/22/2023, 9:07 PMkrondor
05/22/2023, 9:08 PMkrondor
05/22/2023, 9:09 PMkrondor
05/22/2023, 9:09 PMkrondor
05/22/2023, 9:10 PMname = "blucket-api"
main = "src/index.js"
compatibility_date = "2023-05-12"
compatibility_flags = [ "nodejs_compat" ]
services = [
{ binding = "blockstore_service", service = "blucket-blockstore-staging", environment = "production" },
{ binding = "blockstore_service", service = "blucket-blockstore-production", environment = "production" },
]
# Production environment.
[env.production]
name = "blucket-api-production"
# Configure this to your own account.
account_id = "3648328bb7b24838c70d601e79891d98"
# Configure this to your own domain.
route = "blucket.alex1883.workers.dev"
# [[env.production.services]]
# binding = "blockstore_service"
# service = "blucket-blockstore-production"
# Staging environment.
[env.staging]
name = "blucket-api-staging"
# Configure this to your own account.
account_id = "3648328bb7b24838c70d601e79891d98"
# Configure this to your own domain.
route = "blucket-staging.alex1883.workers.dev"
# [[env.staging.services]]
# binding = "blockstore_service"
# service = "blucket-blockstore-staging"
[env.dev]
name = "blucket-api-dev"
[[env.dev.services]]
binding = "blockstore_service"
service = "blucket-blockstore-dev"
krondor
05/22/2023, 9:14 PMHardAtWork
05/23/2023, 6:53 AMjson
{
"name": "blucket-api",
"main": "src/index.js",
"compatibility_date": "2023-05-12",
"compatibility_flags": [
"nodejs_compat"
],
"env": {
"production": {
"name": "blucket-api-production",
"account_id": "3648328bb7b24838c70d601e79891d98",
"route": "blucket.alex1883.workers.dev",
"services": [{
"binding": "blockstore_service",
"service": "blucket-blockstore-production",
}]
},
"staging": {
"name": "blucket-api-staging",
"account_id": "3648328bb7b24838c70d601e79891d98",
"route": "blucket-staging.alex1883.workers.dev",
"services": [{
"binding": "blockstore_service",
"service": "blucket-blockstore-staging"
}]
},
"dev": {
"name": "blucket-api-dev",
"services": [{
"binding": "blockstore_service",
"service": "blucket-blockstore-dev"
}]
}
}
}
krondor
05/23/2023, 8:42 PM