Manage multiple version wrangler file in pages
Hi guys I have a Next.js project deploy in pages, now I have two environment(staging and prod) with two branch in github. In these two environment there has some different env value like api domain, so I want maintain two different env value between two branch, but seems I can't maintain two different version of one file in github, so the only one solution I can figure out is in cloudflare, can I maintain two different wrangler file(like wrangler.staging.toml) in my project? if can how can I choose wrangler when I do the depolyment? or is there has a better way to do it?
thanks for your view.
0 Replies