forked from netlify/create-react-app-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update docs for CRAL with netlify dev
- Loading branch information
sw-yx
committed
Aug 1, 2019
1 parent
eb77fe8
commit 7977ddc
Showing
5 changed files
with
231 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[build] | ||
command = "yarn build" | ||
functions = "built-lambda" | ||
publish = "build" | ||
command = "yarn build" # the command you run to build this file | ||
functions = "built-lambda" # netlify-lambda builds to this folder AND Netlify reads functions from here | ||
publish = "build" # create-react-app builds to this folder, Netlify should serve all these files statically |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// this uses the callback syntax, however, we encourage you to try the async/await syntax shown in async-dadjoke.js | ||
export function handler(event, context, callback) { | ||
console.log("queryStringParameters", event.queryStringParameters) | ||
console.log('queryStringParameters', event.queryStringParameters) | ||
callback(null, { | ||
statusCode: 200, | ||
body: JSON.stringify({ msg: "Hello, World!" }) | ||
body: JSON.stringify({ msg: 'Hello, World!' }), | ||
}) | ||
} |
Oops, something went wrong.