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
-
Hi,
We're using
dotenv
to manage our environment variables. But in order to access them frompayload.config.ts
they need to be prefixed withPAYLOAD_PUBLIC
which is kind of a problem for private variables (e.g.S3_SECRET_KEY
required 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