Error deploying pages project to preview environment
Using wrangler 3.15.0, I cannot deploy my pages project to a preview environment. Using the following pages deployment command:
> wrangler pages deploy static --project-name=<REDACTED>
Ⲡ[WARNING] Warning: Your working directory is a git repo and has uncommitted changes
To silence this warning, pass in --commit-dirty=true
⨠Compiled Worker successfully
đ Uploading... (93/93)
⨠Success! Uploaded 0 files (93 already uploaded) (0.46 sec)
⨠Uploading Functions bundle
⨠Deployment complete! Take a peek over at <REDACTED>9604495b-8d76-4a37-890a-4131f5a6103e
looking forward to understanding more tomorrowpages dev? That might be a way you can shortcut figuring this out if it errors there toocould not resolve binding "BUILD_SCHEDULER"build-scheduler-staging) build-scheduler-staging a very old worker that uses service environments or something like that? What's your account ID?e7526284f9ee484875c61723e78af4ae production env? (service environments were an old thing that's since legacy, so every worker has a production env that's just default nowadays)wrangler deploy --env staging on my function name test it creates the worker as test-staging, but based on this, it seems like the worker should be deployed as name=test with env="staging"wrangler deploy --env stagingtest-stagingtest worker into staging you might think that service test with environment staging is correct, but that worker wont' exist because it was deployed as test-staging. If you specify service as test-staging and environment as staging that also will not work because when that worker was deployed the actual behind the scenes environment was set to production.production9604495b-8d76-4a37-890a-4131f5a6103epages devError: D1_ERROR: no such table: dashboard_notificationscould not resolve binding "BUILD_SCHEDULER"build-scheduler-stagingbuild-scheduler-staginge7526284f9ee484875c61723e78af4aeproductionproductionproductionproductionwrangler deploy --env stagingwrangler deploy --env stagingname=testenv="staging"test-stagingtest-stagingtest-stagingstagingstagingstaging{"deployment_configs":{"preview":{"services":{"BUILD_SCHEDULER":{"service":"build-scheduler-staging","environment":"production"}}}}}...
"services": {
"BUILD_SCHEDULER": {
"service": "build-scheduler-staging",
"environment": "staging"
}
},
... "service_bindings": {
"SERVICE_BINDING": {
"environment": "production",
"service": "example-worker"
}
} "services": {
"SERVICE_BINDING": {
"environment": "production",
"service": "example-worker"
}
}