Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Set PAYLOAD_PUBLIC_ env vars at runtime?

default discord avatar
oliverevans962 years ago
2

Hello,



It seems that

PAYLOAD_PUBLIC_*

env vars are substituted into frontend scripts at build time. I was just wondering whether there's any way to delay this substitution until runtime so that I don't have to rebuild my docker container to update my S3 endpoint.



Thanks,


Oliver

  • discord user avatar
    denolfe
    2 years ago

    Hmm, this is an interesting problem. Since the bundle must be built before serving, I don't know of an easy way to accomplish this.



    Are you using the cloud storage plugin?

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.