forked from GivFNZ/my-website
security/docs: disable lastfm api, update docs for future
This commit is contained in:
parent
87c2e63248
commit
cdcb765785
16
README.md
16
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.
|
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
|
## Special Thanks
|
||||||
|
|
||||||
- [Aidan](https://github.com/ihatenodejs)
|
- [Aidan](https://github.com/ihatenodejs)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { api } from "../lib/axios";
|
import { api } from "../lib/axios";
|
||||||
|
|
||||||
const api_key = import.meta.env.VITE_LASTFM_API_KEY
|
const api_key = null;
|
||||||
|
|
||||||
export interface getRecentTracksResponse {
|
export interface getRecentTracksResponse {
|
||||||
recenttracks: {
|
recenttracks: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user