Skip to content

Commit 0820764

Browse files
committed
Updated netlify.toml, .gitignore
1 parent 2591e51 commit 0820764

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ typings/
7171
# Nuxt generate
7272
dist
7373

74+
# Lambdas
75+
lambdas-dist
76+
7477
# vuepress build output
7578
.vuepress/dist
7679

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The Vue app is prerendered for improved SEO - you can learn more about server-si
1515
$ yarn install
1616

1717
# serve with hot reload at localhost:3000
18+
# serves netlify-lambda functions
1819
$ yarn run dev
1920

2021
# build for production and launch server

lambdas/hello.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
export function handler(event, context, callback) {
2-
console.log(event)
1+
exports.handler = function(event, context, callback) {
32
callback(null, {
43
statusCode: 200,
5-
body: JSON.stringify({ msg: "Hello from Netlify Lambda!" })
4+
body: 'Hello, World'
65
})
76
}

0 commit comments

Comments
 (0)