Hello,
I am having an issue with availability of ENV variables.
Does environment need to be available at build time:
payload buildIn my case, I'm implementing stripe example here:
https://payloadcms.com/docs/admin/webpack#aliasing-server-only-modulesWould
STRIPE_SECRET_KEYhave to be available at build time?
I'm building with github actions & docker.
Thanks in advance
So
payload buildreally only builds the
admin panelJS bundle for browsers
and you do not need / want your
STRIPE_SECRET_KEYto appear in your admin bundle for security reasons
so no, that variable does not need to be present at build time
Thank you for the answer!
Star
Discord
online
Get dedicated engineering support directly from the Payload team.