Skip to content

Commit afc3d2b

Browse files
committed
Merge branch 'paulgalow-pr/consolidating-netlify-conf'
2 parents 7b501f7 + 44e1ebd commit afc3d2b

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

_redirects

Lines changed: 0 additions & 1 deletion
This file was deleted.

netlify.toml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@
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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
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
}

0 commit comments

Comments
 (0)