This message was deleted.
# general
s
This message was deleted.
d
The
require
points to the correct file path, but the lambda doesn't seem to recognize the file. I can even serve that file locally with this js function:
Copy code
const app = express();
app.get("/", (req, res) => {
    const page = require("./about.js");
    page.render(req, res);
});

app.listen(3030);
w
I believe you need to set the
cloud:functionIncludePaths
config variable to indicate custom file system paths you want to include in any functions. Without this, Pulumi will only include the source of your callback function and the required subset of node_modules in the Lambda. See https://pulumi.io/quickstart/cloudfx/#configuration.
❤️ 1
d
thank you so much! I would have never found that on my own 🙂