mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Try require from elm-pages package from serverless functions.
This commit is contained in:
parent
8787fefdde
commit
e6c65bbdf2
@ -129,8 +129,8 @@ async function render(event, context) {
|
||||
|
||||
const compiledElmPath = path.join(__dirname, "elm-pages-cli.js");
|
||||
const compiledPortsFile = path.join(__dirname, "port-data-source.mjs");
|
||||
const renderer = require("../../../../generator/src/render");
|
||||
const preRenderHtml = require("../../../../generator/src/pre-render-html");
|
||||
const renderer = require("elm-pages/generator/src/render.js");
|
||||
const preRenderHtml = require("elm-pages/generator/src/pre-render-html.js");
|
||||
try {
|
||||
const basePath = "/";
|
||||
const mode = "build";
|
||||
|
Loading…
Reference in New Issue
Block a user