security/docs: disable lastfm api, update docs for future

This commit is contained in:
Aidan 2025-03-27 15:31:58 -04:00
parent 87c2e63248
commit cdcb765785
2 changed files with 17 additions and 1 deletions

View File

@ -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)

View File

@ -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: {