Next.js Discord

Discord Forum

.env.local

Answered
DeliciousRiver posted this in #help-forum
Open in Discord
I'm deploying Nextjs AI. On setup stage I wrote random info into OpenAI API and now I've got real keys. I should create .env.local based on .env.exapmle.
I put OpenAI secret key into OPENAI_API_KEY.
What should I put into
KV_URL=XXXXXXXX
KV_REST_API_URL=XXXXXXXX
KV_REST_API_TOKEN=XXXXXXXX
KV_REST_API_READ_ONLY_TOKEN=XXXXXXXX?
Answered by B33fb0n3
Vercel will add them automatically to your project. However you can also pull them to see them locally like:
vercel env pull .env.development.local
View full answer

8 Replies

I set up vk with Vercel. And I can't find kv details in Vercel.
@DeliciousRiver I set up vk with Vercel. And I can't find kv details in Vercel.
Vercel will add them automatically to your project. However you can also pull them to see them locally like:
vercel env pull .env.development.local
Answer
use the command to pull the details
You said Vercel added kv data automatically, and I don't need to see it locally
@DeliciousRiver You said Vercel added kv data automatically, and I don't need to see it locally
yes, they are added automatically. I thought you want to use it locally, but if that's not the case everything is fine 👍