Install it and run:
3000
npm install
npm run dev
yarn
yarn dev
####step 1.
$ now secrets add secret_001 "hello world"
####step 2
$ vim now.json
"build": {
"env": {
"SECRET_001": "@secret_001"
}
}
####step 2
$ vim next.config.js
const nextConfig = {
env: {
SECRET_001: process.env.SECRET_001,
}
}
####step 3
$ vim .env.build
SECRET_001=hello world
The project is published under the MIT license. Feel free to clone and modify repo as you want, but don't forget to add a reference to authors :)