Skip to content

Instantly share code, notes, and snippets.

@fredericbarthelet
Created October 11, 2020 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fredericbarthelet/ed13f16ba99db2756100ef64f71d8c51 to your computer and use it in GitHub Desktop.
Save fredericbarthelet/ed13f16ba99db2756100ef64f71d8c51 to your computer and use it in GitHub Desktop.
Serverless.ts splitting
export default {
hello: {
handler: 'index.hello'
},
goodbye: {
handler: 'index.goodbye'
}
};
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