From cdcb76578514494518854c05348a02bdc87326c6 Mon Sep 17 00:00:00 2001 From: Aidan Date: Thu, 27 Mar 2025 15:31:58 -0400 Subject: [PATCH] security/docs: disable lastfm api, update docs for future --- README.md | 16 ++++++++++++++++ src/api/lastfm.ts | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) 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: {