Feature #19674

FE - React - Environment handling

Added by chok yee fan 9 months ago. Updated 8 months ago.

Status:FeedbackStart date:06 February 2024
Priority:NormalDue 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

Screenshot 2024-02-26 at 4.47.18 PM.png - ^SymbolAtTheVersion (136 KB) chok yee fan, 26 February 2024 04:47 PM

History

#1 Updated by chok yee fan 9 months ago

  • Assignee changed from Amirul Umar Pandai to Nityanantan Nityanantan

#3 Updated by Hazimi Muhammad 8 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 8 months ago

issue
-----
remove the ^ for the version

expected
-----
no ~ or ^ symbol for the version.

applied for all projects

#5 Updated by Hazimi Muhammad 8 months ago

  • Assignee changed from Hazimi Muhammad to Nityanantan Nityanantan

#7 Updated by Hazimi Muhammad 8 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.

Also available in: Atom PDF