Skip to content

Commit a47ed1b

Browse files
author
Anesh Parvatha
committed
Add npm scripts in build guide
1 parent 370bb35 commit a47ed1b

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

.env.staging

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,4 @@
33
SKIP_PREFLIGHT_CHECK=true
44

55
//the variable declaration should start with REACT_APP_
6-
//Eg:-REACT_APP_ENV=development
7-
8-
REACT_APP_NKB_BASE_URL = https://nkb-backend-10xiitian-staging-apis.ibhubs.in/api/
9-
10-
REACT_APP_GTM_ID = GTM-TT9MHTQ
11-
12-
REACT_APP_GOOGLE_SITE_VERIFICATION = ''
13-
14-
REACT_APP_USERSNAP_ID = ''
15-
16-
REACT_APP_SEGMENT_ID = 9HHiENJNjKhD6JdpJVegnRLkWqwyvToR
17-
18-
REACT_APP_SENTRY_KEY=https://[email protected]/1852258
19-
20-
REACT_APP_ONE_SIGNAL_APP_ID = 997515ae-d139-4fcd-992f-e520a8522cdc
21-
22-
REACT_APP_PROGRAM_SLUGS_URL = https://nkb-backend-media-static-tenxiitian.s3.ap-south-1.amazonaws.com/tenxiitian_prod/website-static/jsons/staging/slugs.json
6+
//Eg:-REACT_APP_ENV=development

docs/how-to-build.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ This is the build which we push to `production` environment. Run below command t
5959
```
6060
yarn build:master
6161
```
62+
63+
If you want to customize any of the above build commands, you need to modify npm scripts written in `package.json`.
64+
65+
```
66+
{
67+
"build": "GENERATE_SOURCEMAP=false react-scripts build",
68+
"build:beta": "set \"CI=false\" && env-cmd -f .env.beta yarn build",
69+
"build:gamma": "set \"CI=false\" && env-cmd -f .env.gamma yarn build",
70+
"build:staging": "set \"CI=false\" && env-cmd -f .env.staging yarn build",
71+
"build:master": "set \"CI=false\" && env-cmd -f .env.production yarn build",
72+
}
73+
```

0 commit comments

Comments
 (0)