This website works better with JavaScript.
Home
Explore
Help
Sign In
wayne.lee
/
tsms
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Update environment config
tags/Baseline_30082024_FRONTEND_UAT
Wayne
1 year ago
parent
03532f14f3
commit
a61966d4bd
3 changed files
with
4 additions
and
10 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-4
.env.development
+2
-5
.env.production
+1
-1
src/config/api.ts
+ 1
- 4
.env.development
View File
@@ -1,5 +1,2 @@
API_HOST=localhost
API_PORT=8090
API_PROTOCOL=http
API_BASE_PATH=/api
API_URL=http://localhost:8090/api
NEXTAUTH_SECRET=secret
+ 2
- 5
.env.production
View File
@@ -1,6 +1,3 @@
API_HOST=tsms-uat.2fi-solutions.com
API_PORT=80
API_PROTOCOL=https
API_BASE_PATH=/back-api
API_URL=https://tsms-uat.2fi-solutions.com/back-api
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=tsms-uat.2fi-solutions.com
NEXTAUTH_URL=https://tsms-uat.2fi-solutions.com
+ 1
- 1
src/config/api.ts
View File
@@ -1,2 +1,2 @@
export const BASE_API_URL = `${process.env.API_
PROTOCOL}://${process.env.API_HOST}:${process.env.API_PORT}${process.env.API_BASE_PATH
}`;
export const BASE_API_URL = `${process.env.API_
URL
}`;
export const LOGIN_API_PATH = `${BASE_API_URL}/login`;
Write
Preview
Loading…
Cancel
Save