From 24edefa2423e03dd84a2c85a2dc94af438eecf31 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 5 Aug 2025 20:20:00 +0300 Subject: [PATCH] feat: add environment variable for API URL and update client configuration --- .env.example | 1 + src/hey-api-config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..9cace29 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +NEXT_PUBLIC_API_URL=http://your.api/api \ No newline at end of file diff --git a/src/hey-api-config.ts b/src/hey-api-config.ts index 22fd0a6..fb4eacc 100644 --- a/src/hey-api-config.ts +++ b/src/hey-api-config.ts @@ -2,5 +2,5 @@ import type { CreateClientConfig } from "@/lib/client/client.gen"; export const createClientConfig: CreateClientConfig = config => ({ ...config, - baseUrl: "http://crm.logidex.ru/api", + baseUrl: process.env.NEXT_PUBLIC_API_URL, });