Is it possible to use only one yaml file for local development and server development?

In my Traefik configuration I use this specification:
In some cases the variable is empty (production server) and in other cases it is full (local development):
In my .sh file I write:
export CERTIFICATE=certificatesresolvers.leresolver.acme.caServer=
Unfortunately the system I use does not work. The acme.json file is not filled.
If it's not Traefik's topic or you don't know how to solve it where can I find an answer?
I already wrote here in the past:

thank you

Hi @Milano2022 have you tried switching your static configuration to a file instead of flags?

This way you can handle templating it before applying, so you can change values for different environments while the deployment manifest itself (docker compose or kubernetes manifest) will be the same.