.env.local
Answered
DeliciousRiver posted this in #help-forum
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?
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.local8 Replies
@DeliciousRiver 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?
there you put in your [KV](https://vercel.com/docs/storage/vercel-kv) details
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.localAnswer
@B33fb0n3 Vercel will add them automatically to your project. However you can also pull them to see them locally like:
cli
vercel env pull .env.development.local
So I can delete this rows from .env.local?
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 👍