diff --git a/README.md b/README.md index 0ed42cb..21e55bf 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,22 @@ Any contribution is welcome. If you want to test the website in your own machine The development server will be available at http://localhost:5173. +### Environment Variables + +**The LastFM feature is disabled, and this environment variable is not required yet.** + +To run the project, you need to set up the following environment variables: + +| Variable | Description | +|-----------------------------|--------------------------| +| `VITE_LASTFM_API_KEY` | Your [Last.fm API Key]() | + +Create a `.env` file in the root of the project and add the required variables like so: + +```env +VITE_LASTFM_API_KEY=your-lastfm-api-key-here +``` + ## Special Thanks - [Aidan](https://github.com/ihatenodejs) diff --git a/src/api/lastfm.ts b/src/api/lastfm.ts index ca8a1a5..0b7fc15 100644 --- a/src/api/lastfm.ts +++ b/src/api/lastfm.ts @@ -1,6 +1,6 @@ import { api } from "../lib/axios"; -const api_key = import.meta.env.VITE_LASTFM_API_KEY +const api_key = null; export interface getRecentTracksResponse { recenttracks: {