Feature #19674
FE - React - Environment handling
Status: | Feedback | Start date: | 06 February 2024 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | chok yee fan | % Done: | 0% | |
Category: | - | Spent time: | - | |
Target version: | - |
Description
create the script at package.json to use the .env file.
build:sit read .env.sit and build
build:uat read .env.uat and build
build:prod read .env.prod and build
apply for all project such as cc_core, cc_auth, cc_topnavbar, cc_iam, cc_common
refer:
https://stackoverflow.com/questions/64807289/how-to-handle-multiple-environments-in-react-app
History
#1 Updated by chok yee fan 11 months ago
- Assignee changed from Amirul Umar Pandai to Nityanantan Nityanantan
#2 Updated by Nityanantan Nityanantan 10 months ago
- Status changed from New to Resolved
- Assignee changed from Nityanantan Nityanantan to Hazimi Muhammad
nity- env initialize for cc_core, cc_auth, cc_topnavbar, cc_iam, cc_common, cc_am
#3 Updated by Hazimi Muhammad 10 months ago
- Status changed from Resolved to Feedback
- Assignee changed from Hazimi Muhammad to chok yee fan
Issue has been solved.
Check for:
-File env.sit , env.uat. env.prod has been add.
-The script at package.json has been add in :
cc_core,
cc_auth,
cc_topnavbar,
cc_iam,
cc_common,
cc_am
#4 Updated by chok yee fan 10 months ago
- File Screenshot 2024-02-26 at 4.47.18 PM.png added
- Status changed from Feedback to Assigned
- Assignee changed from chok yee fan to Hazimi Muhammad
issue
-----
remove the ^ for the version
expected
-----
no ~ or ^ symbol for the version.
applied for all projects
#5 Updated by Hazimi Muhammad 10 months ago
- Assignee changed from Hazimi Muhammad to Nityanantan Nityanantan
#6 Updated by Nityanantan Nityanantan 10 months ago
- Status changed from Assigned to Resolved
- Assignee changed from Nityanantan Nityanantan to Hazimi Muhammad
nity- remove caret from package json from cc_core, cc_auth, cc_topnavbar, cc_iam, cc_common, cc_am
cc_core,cc_auth, cc_topnavbar: https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-core/-/commit/34ef05cc4f52dd8e348fbbaf38f04b46f0e08bdd
#7 Updated by Hazimi Muhammad 10 months ago
- Status changed from Resolved to Feedback
- Assignee changed from Hazimi Muhammad to chok yee fan
Issue has been fixed.
Already check for package json for:
cc_core,
cc_auth,
cc_topnavbar,
cc_iam,
cc_common,
cc_am
no ~ or ^ symbol for the version.