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
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?