1 Commits

Author SHA1 Message Date
095f3dae76 add environment variable for API URL and update client configuration 2025-08-05 20:17:46 +03:00
2 changed files with 3 additions and 2 deletions

1
.env.example Normal file
View File

@ -0,0 +1 @@
NEXT_PUBLIC_API_URL=http://api.example.com/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,
}); });