-
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.
add webpack config sls handler and dynamoose
- changed serverless handler - fix webpack config for serverless offline testing - maked item route with GET method where make a query in a dynamodb table
- Loading branch information
bardarz
committed
Nov 6, 2019
1 parent
a6c7b21
commit 57e4c7b
Showing
12 changed files
with
3,484 additions
and
194 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
{ | ||
"plugins": ["@babel/plugin-transform-runtime"], | ||
"presets": ["@babel/preset-env"] | ||
"plugins": ["source-map-support","@babel/plugin-syntax-dynamic-import"], | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules":"commonjs", | ||
"targets": { | ||
"node": "8.10" | ||
} | ||
} | ||
] | ||
] | ||
} |
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,9 +1,8 @@ | ||
|
||
const serverless = require('serverless-http'); | ||
const app = require('./src/app'); | ||
|
||
module.exports.main = serverless(app); | ||
|
||
|
||
'use strict'; | ||
const awsless = require('aws-serverless-express'); | ||
|
||
const app = require('./src/app'); | ||
const server = awsless.createServer(app); | ||
|
||
exports.main = (event, context) => { awsless.proxy(server, event, context) }; |
Oops, something went wrong.