Migrated to `wrangler.toml` - getting "Deployment failed" in dashboard
After reading https://blog.cloudflare.com/pages-workers-integrations-monorepos-nextjs-wrangler, I decided to switch my pages deployment to use
wrangler.toml
. This works great locally (no more passing a bunch of parameters), but when I deploy I get a weird situation.
However, the dashboard shows Deployment failed, without any further information.1 Reply
i guess one option would be to remove the complete page and re-create from scratch, but that would be far from ideal
a manual "upload folder" in the dashboard with the output dir still works fine. so it must be some compatibility issue in the new
wrangler.toml
support
found it! the issue was a secret token that was set in wrangler.toml
as a public env var. moving it to .dev.vars
fixed it
still would be nice if it's possible to debug deployment failures đ