feat: add environment variable for API URL and update client configuration

This commit is contained in:
2025-08-05 20:20:00 +03:00
parent cd034bcce6
commit 24edefa242
2 changed files with 2 additions and 1 deletions

1
.env.example Normal file
View File

@ -0,0 +1 @@
NEXT_PUBLIC_API_URL=http://your.api/api

View File

@ -2,5 +2,5 @@ import type { CreateClientConfig } from "@/lib/client/client.gen";
export const createClientConfig: CreateClientConfig = config => ({ export const createClientConfig: CreateClientConfig = config => ({
...config, ...config,
baseUrl: "http://crm.logidex.ru/api", baseUrl: process.env.NEXT_PUBLIC_API_URL,
}); });