Closed Perdolique closed 4 months ago
The existing plugin doesn't work with multi-environment configurations. To get the correct binding from getPlatformProxy in this case we need to specify environment.
getPlatformProxy
environment
wrangler.toml
name = "woof" compatibility_date = "2024-06-29" pages_build_output_dir = "./dist" [[env.production.d1_databases]] binding = "DB" database_name = "woof-prod" database_id = "prod" [[env.preview.d1_databases]] binding = "DB" database_name = "woof-stage" database_id = "stage"
The existing plugin doesn't work with multi-environment configurations. To get the correct binding from
getPlatformProxy
in this case we need to specifyenvironment
.Example
wrangler.toml