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 env settings
tags/Baseline_30082024_FRONTEND_UAT
Terence
1 year ago
parent
7ce644f3c0
commit
03532f14f3
3 changed files
with
5 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
.env.development
+3
-1
.env.production
+1
-1
src/config/api.ts
+ 1
- 0
.env.development
View File
@@ -1,4 +1,5 @@
API_HOST=localhost
API_PORT=8090
API_PROTOCOL=http
API_BASE_PATH=/api
NEXTAUTH_SECRET=secret
+ 3
- 1
.env.production
View File
@@ -1,4 +1,6 @@
API_HOST=tsms-uat.2fi-solutions.com
API_PORT=80
API_PROTOCOL=https
NEXTAUTH_SECRET=secret
API_BASE_PATH=/back-api
NEXTAUTH_SECRET=secret
NEXTAUTH_URL=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}
/api
`;
export const BASE_API_URL = `${process.env.API_PROTOCOL}://${process.env.API_HOST}:${process.env.API_PORT}
${process.env.API_BASE_PATH}
`;
export const LOGIN_API_PATH = `${BASE_API_URL}/login`;
Write
Preview
Loading…
Cancel
Save