Skip to content

Environment variables inside custom components undefined #6210

Answered by r1tsuu
vstarush asked this question in Q&A
Discussion options

You must be logged in to vote

are you using 2.0 or 3.0?
if 2.0 public envs that should be accessible from the front end need to start with the prefix PAYLOAD_PUBLIC like PAYLOAD_PUBLIC_URL
3.0 - the same but NEXT_PUBLIC.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vstarush
Comment options

Answer selected by vstarush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants