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

@ -1,7 +1,9 @@
export const CURRENT_APP_VERSION = "3.7.0";
import { env } from "next-runtime-env";
const NEXT_PUBLIC_API_URL = env("NEXT_PUBLIC_API_URL") || null;
export const API_URL = "https://api.anixart.app";
export const API_PREFIX = "/api/proxy";
export const API_PREFIX = NEXT_PUBLIC_API_URL || "/api/proxy";
export const USER_AGENT =
"AnixartApp/9.0 BETA 5-25062213 (Android 9; SDK 28; arm64-v8a; samsung SM-G975N; en)";