mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-18 00:51:31 +03:00
Fix path to compiled CLI elm.
This commit is contained in:
parent
d4a8342888
commit
71bd580f98
@ -13,11 +13,11 @@ export default async function run({
|
||||
|
||||
fs.copyFileSync(
|
||||
renderFunctionFilePath,
|
||||
"./functions/render/elm-pages-cli.js"
|
||||
"./functions/render/elm-pages-cli.cjs"
|
||||
);
|
||||
fs.copyFileSync(
|
||||
renderFunctionFilePath,
|
||||
"./functions/server-render/elm-pages-cli.js"
|
||||
"./functions/server-render/elm-pages-cli.cjs"
|
||||
);
|
||||
fs.copyFileSync(portsFilePath, "./functions/render/custom-backend-task.mjs");
|
||||
fs.copyFileSync(
|
||||
@ -138,7 +138,7 @@ async function render(event, context) {
|
||||
const renderResult = await renderer.render(
|
||||
compiledPortsFile,
|
||||
basePath,
|
||||
(await import("./elm-pages-cli.js")).default,
|
||||
(await import("./elm-pages-cli.cjs")).default,
|
||||
mode,
|
||||
event.path,
|
||||
await reqToJson(event, requestTime),
|
||||
|
@ -618,7 +618,7 @@ function _HtmlAsJson_toJson(html) {
|
||||
async function runAdapter(adaptFn, processedIndexTemplate) {
|
||||
try {
|
||||
await adaptFn({
|
||||
renderFunctionFilePath: "./elm-stuff/elm-pages/elm.js",
|
||||
renderFunctionFilePath: "./elm-stuff/elm-pages/elm.cjs",
|
||||
routePatterns: JSON.parse(
|
||||
await fsPromises.readFile("./dist/route-patterns.json", "utf-8")
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user