Developer documentation
Your API key authenticates requests from your application to your ContioReach workspace.
Inside your ContioReach workspace:
Use an environment variable:
CMS_API_KEY=your_api_key_hereThen access it only from server side code:
const apiKey = process.env.CMS_API_KEY;Do not place your API key:
For example, avoid:
NEXT_PUBLIC_CMS_API_KEY=your_api_key_hereValues prefixed with NEXT_PUBLIC_ are intended to be available to browser code in Next.js. Your ContioReach API key should remain private.
If a Client Component needs ContioReach data, call your own backend route.
Your server sends the API key to ContioReach. The browser never receives it.