Hi, I've done the function that returns the string expected by livePreview, except that since it's run client-side I can't access the environment variables and the secret returns undefined. Any idea how to do this?
If you prefix the env var with
PAYLOAD_PUBLIC_
it will be available in the admin UI.
Star
Discord
online
Get dedicated engineering support directly from the Payload team..