Skip to content

Commit f4d21cf

Browse files
author
sw-yx
committed
remove serve reload
1 parent 39aa887 commit f4d21cf

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"react-scripts": "^3.0.0"
1010
},
1111
"scripts": {
12-
"start": "run-p start:**",
13-
"start:app": "react-scripts start",
12+
"start": "react-scripts start",
1413
"start:lambda": "netlify-lambda serve src/lambda",
1514
"build": "run-p build:**",
1615
"build:app": "react-scripts build",

src/lambda/hello.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
// show object spread works, i.e. babel works
2-
const obj = {
3-
foo: 'bar'
4-
};
51
export function handler(event, context, callback) {
6-
console.log('queryStringParameters', event.queryStringParameters);
2+
console.log("queryStringParameters", event.queryStringParameters)
73
callback(null, {
84
statusCode: 200,
9-
body: JSON.stringify({ msg: 'Hello, World!', ...obj })
10-
});
5+
body: JSON.stringify({ msg: "Hello, World!" })
6+
})
117
}

0 commit comments

Comments
 (0)