Inject secret into my livePreview button function

default discord avatar
<Clement/>9 months ago
1

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?

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.