-
Hello, I found that when I add a custom component like this inside a collection:
inside the "ApproveButtonComponent" environment variables are not available. Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
r1tsuu
May 4, 2024
Replies: 1 comment 1 reply
-
are you using 2.0 or 3.0? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vstarush
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
likePAYLOAD_PUBLIC_URL
3.0 - the same but
NEXT_PUBLIC
.