Variables and Secrets get cleared when building

My project is using the new automatic build system for workers, when a new build is run it will clear the Variables and Secrets that have been set in the dashboard even when setting them Variables and Secrets section in build. Here is my wrangler toml
name = "api"
compatibility_date = "2024-12-12"
compatibility_flags = [ "nodejs_compat" ]
main = "src/index.ts"
minify = true
workers_dev = false


[dev]
port = 8181



[env.production]
name = "api"
route = { pattern = "api.buzztrip.co/*", zone_name = "buzztrip.co" }
name = "api"
compatibility_date = "2024-12-12"
compatibility_flags = [ "nodejs_compat" ]
main = "src/index.ts"
minify = true
workers_dev = false


[dev]
port = 8181



[env.production]
name = "api"
route = { pattern = "api.buzztrip.co/*", zone_name = "buzztrip.co" }
I have a feeling it might have to do with my config but unsure.
No description
No description
1 Reply
katopz
katopz•6d ago
Same here and the worst is I can't find the way to auto add secret programmatically from .dev.vars 😱

Did you find this page helpful?