Skip to content

Commit

Permalink
fix: package-version
Browse files Browse the repository at this point in the history
  • Loading branch information
dfounderliu committed Apr 15, 2020
1 parent e336ebb commit f319954
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions example/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
component: scf
name: scfdemo
name: scf-demo
org: test
app: scfApp
app: scfApps
stage: dev

inputs:
name: scfFunctionName
src: ./src
name: scfFunctionDemo
runtime: Nodejs10.15
region: ap-guangzhou
handler: index.main_handler
Expand Down
7 changes: 3 additions & 4 deletions example/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use strict';
exports.main_handler = async (event, context, callback) => {
console.log("Hello World")
console.log('Hello World For Serverless aaa')
console.log(event)
console.log(event["non-exist"])
console.log(event['non-exist'])
console.log(context)
return event
};
}

0 comments on commit f319954

Please sign in to comment.