You can generate an API Key in your InternalStack Cloud console.
'live_psk_'
for automated codebase leak detection.These opaque tokens should be treated as secret values.
import { internalStack } from '@internalstack/server'
const server = await internalStack(process.env.INTERNALSTACK_API_SECRET) // Do this ✅
// const server = await internalStack('live_psk_5b2d902f24a057349d9f2d1c385fef7c5947112') // Don't do this ❌
An application may have up to two live keys at any time. This allows for rotation without downtime.