feat: add support for custom API url

This commit is contained in:
Kentai Radiquum 2025-07-08 16:36:38 +05:00
parent 2f928579f9
commit ba73fc3308
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 20 additions and 13 deletions

View file

@ -26,11 +26,12 @@ Requirements:
![vercel import button](./docs/deploy/vercel_import.png)
5. (optional) Add variable to use your own player:
5. (optional) Add variable to use your own player and/or api-proxy:
- NEXT_PUBLIC_PLAYER_PARSER_URL
- NEXT_PUBLIC_API_URL
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md)
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
![vercel project settings](./docs/deploy/vercel_project.png)
@ -73,11 +74,12 @@ Requirements:
![netlify project name](./docs/deploy/netlify_project_name.png)
7. (optional) Add variables to use your own player:
7. (optional) Add variables to use your own player and/or api-proxy:
- NEXT_PUBLIC_PLAYER_PARSER_URL
- NEXT_PUBLIC_API_URL
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md)
Use the ones you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
1. ![alt text](./docs/deploy/netlify_env_1.png)
@ -120,7 +122,7 @@ Additional Requirements:
- -p - container port to be exposed externally. PORT:3000
> [!NOTE]
> For variables you received if you deployed [anix-player-parsers](./player-parsers/README.md), you need to use `-e VARIABLE=VALUE` before the last word anix
> For variables you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md), you need to use `-e VARIABLE=VALUE` before the last word anix
[docker run command](https://docs.docker.com/reference/cli/docker/container/run/)
@ -150,7 +152,7 @@ Instructions:
1. Clone the repository `git clone https://github.com/Radiquum/AniX`
2. Navigate to the repository directory `cd AniX`
3. Run the command `npm install`
4. (optional) copy `.env.sample` as `.env` and fill it with variables you received if you deployed [anix-player-parsers](./player-parsers/README.md)
4. (optional) copy `.env.sample` as `.env` and fill it with variables you received if you deployed [anix-player-parsers](./player-parsers/README.md) and/or [anix-api-prox](./api-prox/README.md)
5. Run the command `npm run build`
6. Create a new directory (next we will be refer to its name as `<new_dir>`)
7. Move the following files into the new directory (`<new_dir>`):