hi! I'm trying to do this (within an API Gateway r...
# general
h
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