Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Inject secret into my livePreview button function

default discord avatar
<Clement/>last year
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 dedicated engineering support directly from the Payload team..