feat: Add netlify PR preview

Signed-off-by: ErikQQY <2283984853@qq.com>
This commit is contained in:
ErikQQY 2021-07-25 23:14:47 +08:00
parent a23847ee97
commit 60b27ef015
2 changed files with 4 additions and 0 deletions

3
netlify.toml Normal file
View File

@ -0,0 +1,3 @@
[build]
publish = "build/"
command = "npm run build-localhost"

View File

@ -35,6 +35,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build-localhost": "PUBLIC_URL=/ react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"lint": "eslint . --ext .js,.ts,.tsx",