Worker environnments as multi-tenant solution: are workers env broken ?

I'm trying to achieve one wrangler.json to get:
default env: clientA.com
env welcome: clientB.com

only 2 vars differs from client A to B that's why I don't want to create 2 wrangler.json file and leverage https://developers.cloudflare.com/workers/wrangler/environments/

Thing is: for pages you have a select on the cloudflare dashboard that shows the different environements (and their vars/configuration/secrets)
For woker I haven't found this.

The github integration keeps running npx opennextjs-cloudflare deploy --env=welcome && npx opennextjs-cloudflare deploy but :
  • default env (clientA.com) works fine
  • nothing is accessible on clientB.com
  • no errors on the build or deploy (both env) command.
  • no reference to the welcome env for ClientB, wether on cloudflare workers list, nor inside the worker project (johndoe)
Build command: npx opennextjs-cloudflare build
Deploy command: npx opennextjs-cloudflare deploy --env=welcome && npx opennextjs-cloudflare deploy
Version command: npx wrangler versions upload

here is my wrangler.json: https://gist.github.com/tristanbes/51ad39218d21329f27be179a73bb7281

Thanks for your help
Was this page helpful?