run local dev server and react-scripts in same session
This commit is contained in:
parent
19b077f48a
commit
4972623400
1 changed files with 11 additions and 2 deletions
13
package.json
13
package.json
|
|
@ -9,14 +9,23 @@
|
|||
"react-scripts": "1.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"bootstrap": "node ./init-faunadb.js",
|
||||
"buildFunctions": "netlify-lambda build functions -c ./webpack.config.js",
|
||||
"start": "concurrently \"react-scripts start\" \"npm run startServer\"",
|
||||
"startServer": "netlify-lambda serve functions -c ./webpack.config.js",
|
||||
"build": "npm run buildFunctions && react-scripts build",
|
||||
"buildFunctions": "netlify-lambda build functions -c ./webpack.config.js",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"devDependencies": {
|
||||
"netlify-lambda": "^0.4.0"
|
||||
},
|
||||
"proxy": {
|
||||
"/.netlify/functions": {
|
||||
"target": "http://localhost:9000",
|
||||
"pathRewrite": {
|
||||
"^/\\.netlify/functions": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue