How to use private en vars in payload.config.ts ? #2300
Unanswered
franckmartin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We're using
dotenvto manage our environment variables. But in order to access them frompayload.config.tsthey need to be prefixed withPAYLOAD_PUBLICwhich is kind of a problem for private variables (e.g.S3_SECRET_KEYrequired by theplugin-cloud-storage/s3). What is the proper way to import environment variables in payload configuration without resorting to public variables ?Beta Was this translation helpful? Give feedback.
All reactions