3 ms·
so happy for this, been using canary `nextjs` + `now` for all my non work projects my favorite feature of `now` is environment variables, and `next.js` 9.4 has
by djstein 6y ago
so happy for this, been using canary `nextjs` + `now` for all my non work projects
my favorite feature of `now` is environment variables, and `next.js` 9.4 has even better support.
so if using `now`, you store your env vars / secrets in your project on https://vercel.com/ https://vercel.com/ in separate buckets for prod, dev, etc
then on your local environment run `now env pull` and get the latest dev env vars populated in `.env` of your project. this is super great for remote teams where you don't have to share .env files via communication channels / ask someone for the latest variable value
- earthboundkid 6y agoHow do you make sure the secret env vars are only used in server side JS and never in the client bundle? I was working on a Nuxt app and got really nervous about this and never found a good answer.
- earthboundkid 6y agoJust read TFA and it looks like the Next team has a good answer for this! Glad they made it simpler.