https://pulumi.com logo
#general
Title
# general
h

high-quill-11351

11/12/2019, 8:24 PM
hi! I'm trying to do this (within an API Gateway route definition):
Copy code
eventHandler: async (event, context) => {
                const serverless = require('serverless-http');
                const app = require('./app');
                const handler = serverless(app);
                const result = await handler(event, context);
                return result;
            }
But the file in "./app" never gets uploaded to my lambda zip. Any clue?
Found the solution myself: codePathOptions: { extraIncludePaths: ['./app.js'], },
👍 2