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(
|
fs.copyFileSync(
|
||||||
renderFunctionFilePath,
|
renderFunctionFilePath,
|
||||||
"./functions/render/elm-pages-cli.js"
|
"./functions/render/elm-pages-cli.cjs"
|
||||||
);
|
);
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
renderFunctionFilePath,
|
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(portsFilePath, "./functions/render/custom-backend-task.mjs");
|
||||||
fs.copyFileSync(
|
fs.copyFileSync(
|
||||||
@ -138,7 +138,7 @@ async function render(event, context) {
|
|||||||
const renderResult = await renderer.render(
|
const renderResult = await renderer.render(
|
||||||
compiledPortsFile,
|
compiledPortsFile,
|
||||||
basePath,
|
basePath,
|
||||||
(await import("./elm-pages-cli.js")).default,
|
(await import("./elm-pages-cli.cjs")).default,
|
||||||
mode,
|
mode,
|
||||||
event.path,
|
event.path,
|
||||||
await reqToJson(event, requestTime),
|
await reqToJson(event, requestTime),
|
||||||
|
@ -618,7 +618,7 @@ function _HtmlAsJson_toJson(html) {
|
|||||||
async function runAdapter(adaptFn, processedIndexTemplate) {
|
async function runAdapter(adaptFn, processedIndexTemplate) {
|
||||||
try {
|
try {
|
||||||
await adaptFn({
|
await adaptFn({
|
||||||
renderFunctionFilePath: "./elm-stuff/elm-pages/elm.js",
|
renderFunctionFilePath: "./elm-stuff/elm-pages/elm.cjs",
|
||||||
routePatterns: JSON.parse(
|
routePatterns: JSON.parse(
|
||||||
await fsPromises.readFile("./dist/route-patterns.json", "utf-8")
|
await fsPromises.readFile("./dist/route-patterns.json", "utf-8")
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user