Created
October 11, 2020 11:07
-
-
Save fredericbarthelet/ed13f16ba99db2756100ef64f71d8c51 to your computer and use it in GitHub Desktop.
Serverless.ts splitting
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
export default { | |
hello: { | |
handler: 'index.hello' | |
}, | |
goodbye: { | |
handler: 'index.goodbye' | |
} | |
}; |
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
import functions from './functions'; | |
const serverlessConfiguration: Serverless = { | |
service: 'myServerlessService', | |
provider: { | |
name: 'aws', | |
runtime: 'nodejs12.x' | |
}, | |
functions | |
}; | |
module.exports = serverlessConfiguration; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment