Prodromos
Prodromos10mo ago

What mean to put env variable on convex dashboard?

I try to use the convex-nextauth-template and the readme file say to put the env vars on the dashboard. What does that mean? First time I use the convex... What is the AUTH_RESEND_KEY env var?
9 Replies
Matt Luo
Matt Luo10mo ago
Within the Convex console, there is a place to set env variables per each deployment. That may be what the README is referring to
Prodromos
ProdromosOP10mo ago
Thanks for the reply. Im not sure what you mean, Can you explain it more? Maybe mean to put them on the environment-variables on settings?
jamwt
jamwt10mo ago
that's the place and AUTH_RESEND_KEY . I'm guessing that's an api key for resend.com
Matt Luo
Matt Luo10mo ago
No description
Prodromos
ProdromosOP10mo ago
Thank you guys!!!
Matt Luo
Matt Luo10mo ago
Screenshotted again without my mouse cursor focusing on "Functions"
No description
Prodromos
ProdromosOP10mo ago
Now I try to understand how can use it. Watch the docs of the convex. Thank you again! @Matt Luo and @jamwt sorry again... On the second step
2. Generate private and public key by running node generateKeys.mjs

a. Paste the private key to the .env.local file
b. Paste the public key to your Convex dashboard, which you can open by running npx convex dashboard
2. Generate private and public key by running node generateKeys.mjs

a. Paste the private key to the .env.local file
b. Paste the public key to your Convex dashboard, which you can open by running npx convex dashboard
When I generate the node generateKeys.mjs the show the follow vars. The a private key is the CONVEX_AUTH_PRIVATE_KEY and the b public key is the JWKS?
Matt Luo
Matt Luo10mo ago
I'm not sure; I have not used Next Auth. But there's a very small amount of possible combinations here. Worst case, you could just guess and try them
Michal Srb
Michal Srb10mo ago
Yes, the JWKS is the public key. I'll update the README and link to the dashboard for clarity. Thanks

Did you find this page helpful?