- uses spotify api to display my currently playing song
- uses nextjs 14's app routing
- uses nextjs's new image component to optimize the images (especially the main one)
Most of the setup is similar to any Next.JS project. I have it hosted on Vercel, so there was no configuration needed for the main deployment. The only thing I had to set up myself was the Spotify integration.
First, I created an application on the Spotify Developer Portal. From there, I used the spotify-web-api-node's Authorization Code Flow to obtain a Refresh Token. The refresh token and Client ID/Secret are entered in the Vercel project settings as:
SPOTIFY_CLIENT_IDSPOTIFY_CLIENT_SECRETSPOTIFY_REFRESH_TOKEN.
Geologica Font downloaded from Google Fonts