Refactor SSR strategy. Redirect before bundling any page component. Additional bugfixes for dev environment
This commit is contained in:
@@ -35,6 +35,10 @@ export default async function handleWebPages({
|
||||
req,
|
||||
});
|
||||
|
||||
if (componentRes instanceof Response) {
|
||||
return componentRes;
|
||||
}
|
||||
|
||||
return await generateWebPageResponseFromComponentReturn({
|
||||
...componentRes,
|
||||
});
|
||||
@@ -45,6 +49,10 @@ export default async function handleWebPages({
|
||||
error,
|
||||
});
|
||||
|
||||
if (componentRes instanceof Response) {
|
||||
return componentRes;
|
||||
}
|
||||
|
||||
return await generateWebPageResponseFromComponentReturn(componentRes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user