Create server-render folder from adapter.

This commit is contained in:
Dillon Kearns 2021-12-16 20:37:32 -08:00
parent 07b5bfbe61
commit b9f3ded983

View File

@ -5,6 +5,15 @@ async function run({ renderFunctionFilePath, routePatterns }) {
renderFunctionFilePath,
"./functions/render/elm-pages-cli.js"
);
fs.mkdirSync("functions/server-render");
fs.copyFileSync(
renderFunctionFilePath,
"./functions/server-render/elm-pages-cli.js"
);
fs.copyFileSync(
"functions/render/index.js",
"./functions/server-render/index.js"
);
// TODO also copy renderFunctionFilePath to server-render function folder?
// TODO copy DPR render serverless function to functions folder
// TODO copy server-request render serverless function to functions folder