preserve indentation

This commit is contained in:
DavidWells 2018-06-29 15:59:39 -07:00
parent 814533be85
commit 2aeba61e73

View file

@ -252,15 +252,15 @@ Lets rock and roll.
{
"name": "netlify-fauna",
"scripts": {
# scaffold and setup FaunaDB
"ABOUT-bootstrap-command": "#👇 scaffold and setup FaunaDB #",
"bootstrap": "node ./scripts/bootstrap-fauna-database.js",
# start the app and server
"ABOUT-start-command": "#👇 start the app and server #",
"start": "npm-run-all --parallel start:app start:server",
"start:app": "react-scripts start",
"start:server": "netlify-lambda serve functions -c ./webpack.config.js",
# before 'build' runs, run the 'bootstrap' command
"ABOUT-prebuild-command": "#👇 before 'build' runs, run the 'bootstrap' command #",
"prebuild": "echo 'setup faunaDB' && npm run bootstrap",
# build the react app and the serverless functions
"ABOUT-build-command": "#👇 build the react app and the serverless functions #",
"build": "npm-run-all --parallel build:**",
"build:app": "react-scripts build",
"build:functions": "netlify-lambda build functions -c ./webpack.config.js",
@ -337,7 +337,7 @@ exports.handler = (event, context, callback) => {
### 3. Connect the function to the frontend app
Inside of your react app. You can now wire up the
Inside of your react app. You can now wire up the `/.netlify/functions/todos-create` endpoint to an AJAX request
```js
// Function using fetch to POST to our API endpoint