mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 21:02:33 +03:00
Create server-render folder from adapter.
This commit is contained in:
parent
07b5bfbe61
commit
b9f3ded983
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user