diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..1534303 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +NEXT_PUBLIC_API_URL=http://api.example.com/api \ No newline at end of file diff --git a/src/hey-api-config.ts b/src/hey-api-config.ts index 22fd0a6..96c5dd9 100644 --- a/src/hey-api-config.ts +++ b/src/hey-api-config.ts @@ -1,6 +1,6 @@ -import type { CreateClientConfig } from "@/lib/client/client.gen"; +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, });