add environment variable for API URL and update client configuration
This commit is contained in:
1
.env.example
Normal file
1
.env.example
Normal file
@ -0,0 +1 @@
|
|||||||
|
NEXT_PUBLIC_API_URL=http://api.example.com/api
|
||||||
@ -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 => ({
|
export const createClientConfig: CreateClientConfig = config => ({
|
||||||
...config,
|
...config,
|
||||||
baseUrl: "http://crm.logidex.ru/api",
|
baseUrl: process.env.NEXT_PUBLIC_API_URL,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user