mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 22:26:16 +03:00
Try different path format in adapter script.
This commit is contained in:
parent
1adf37ba42
commit
5f8ce1b2eb
@ -128,7 +128,7 @@ export const handler = render;`
|
||||
async function render(event, context) {
|
||||
const requestTime = new Date();
|
||||
console.log(JSON.stringify(event));
|
||||
const compiledPortsFile = "./custom-backend-task.mjs";
|
||||
const compiledPortsFile = "./functions/server-render/custom-backend-task.mjs";
|
||||
|
||||
try {
|
||||
const basePath = "/";
|
||||
@ -181,7 +181,9 @@ async function render(event, context) {
|
||||
};
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('ERROR')
|
||||
console.error(error);
|
||||
console.error(JSON.stringify(error, null, 2));
|
||||
return {
|
||||
body: \`<body><h1>Error</h1><pre>\${error.toString()}</pre></body>\`,
|
||||
statusCode: 500,
|
||||
|
Loading…
Reference in New Issue
Block a user