File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 66[build ]
77 base = " "
88 publish = " build"
9- command = " REACT_APP_STAGE=dev npm run build:netlify "
9+ command = " REACT_APP_STAGE=dev npm run build"
1010
1111# Production context: All deploys to the main
1212# repository branch will inherit these settings.
1313[context .production ]
14- command = " REACT_APP_STAGE=prod npm run build:netlify "
14+ command = " REACT_APP_STAGE=prod npm run build"
1515
1616# Deploy Preview context: All Deploy Previews
1717# will inherit these settings.
1818[context .deploy-preview ]
19- command = " REACT_APP_STAGE=dev npm run build:netlify "
19+ command = " REACT_APP_STAGE=dev npm run build"
2020
2121# Branch Deploy context: All deploys that are not in
2222# an active Deploy Preview will inherit these settings.
2323[context .branch-deploy ]
24- command = " REACT_APP_STAGE=dev npm run build:netlify"
24+ command = " REACT_APP_STAGE=dev npm run build"
25+
26+ # Always redirect any request to our index.html
27+ # and return the status code 200.
28+ [[redirects ]]
29+ from = " /*"
30+ to = " /index.html"
31+ status = 200
Original file line number Diff line number Diff line change 1616 "start" : " react-scripts start" ,
1717 "build" : " react-scripts build" ,
1818 "test" : " react-scripts test --env=jsdom" ,
19- "build:netlify" : " npm run build && cp _redirects build/_redirects" ,
2019 "eject" : " react-scripts eject"
2120 }
2221}
You can’t perform that action at this time.
0 commit comments