Skip to main content

Basic example

Using environment variables (Next.js)

Store your credentials in .env.local:
Then use them in your component:
NEXT_PUBLIC_ variables are exposed to the browser. This is acceptable for a submission-only key since it cannot read or delete your data.