mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-01 07:45:22 +03:00
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
// const path = require("path");
|
|
|
|
exports.handler = async function (event, context) {
|
|
console.log(JSON.stringify(event));
|
|
// process.chdir(path.join(__dirname, "../../"));
|
|
// process.chdir("../");
|
|
const renderer = require("../../../../generator/src/render");
|
|
console.log("pwd", process.cwd());
|
|
return {
|
|
body: (await renderer()).htmlString,
|
|
statusCode: 200,
|
|
};
|
|
};
|