node version 16.14 yarn verison 1.22
-
Install dependencies with
yarn install
-
Create env file with following variables:
NEXTAUTH_URL
- Base URLSECRET
- Secret phraseNEXT_PUBLIC_CLIENT_ID
- Spotify developers client idNEXT_PUBLIC_CLIENT_SECRET
- Spotify developers client secretNEXT_PUBLIC_REDIRECT_URI
- baseUrl + /api/auth/callback/spotify -
Start dev environment with
npm run dev
oryarn dev
-
Build production app using
npm run build
oryarn build
Deploy the example using Vercel or preview live with StackBlitz