forked from Shared/esg
added server config from env
This commit is contained in:
@@ -60,6 +60,7 @@ async function bootstrap(): Promise<void> {
|
||||
);
|
||||
|
||||
const baseUrlProd = process.env.BASE_URL_PROD;
|
||||
const clientUrl = process.env.CLIENT_URL;
|
||||
|
||||
const documentBuilder = new DocumentBuilder()
|
||||
.setTitle('External Services Gateway')
|
||||
@@ -69,7 +70,11 @@ async function bootstrap(): Promise<void> {
|
||||
)
|
||||
.setVersion('1.0')
|
||||
.addServer("http://localhost:8085")
|
||||
.addServer("https://apex.mic.co.ir/esg/api");
|
||||
.addServer("http://192.168.20.22:8085");
|
||||
|
||||
if (clientUrl) {
|
||||
documentBuilder.addServer(clientUrl);
|
||||
}
|
||||
|
||||
if (baseUrlProd) {
|
||||
documentBuilder.addServer(baseUrlProd);
|
||||
|
||||
Reference in New Issue
Block a user