For livekit user
For those who are familiar with livekit.io, configure your environment variables as follows:
# Server-side only
LIVEKIT_API_KEY=
LIVEKIT_API_SECRET=
# Both server and client
NEXT_PUBLIC_LIVEKIT_URL=
For newbie
-
First, register a new account at livekit.io and create a new project.
-
Go to Settings > Keys in your project dashboard to generate new API credentials.
-
You'll receive three important values:
- API Key
- API Secret
- WebSocket URL
-
Configure your environment variables:
- Set
LIVEKIT_API_KEY
andLIVEKIT_API_SECRET
in your server environment only - Set
NEXT_PUBLIC_LIVEKIT_URL
in both server and client environments
- Set
⚠️ Important: Keep
LIVEKIT_API_KEY
andLIVEKIT_API_SECRET
secure on your server side only. Never expose these in your frontend code.