feat: 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://your.api/api
|
||||
@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user