entry-server.tsx does not run when ssr: false

is this a bug or intentional? if intentional, why?
import { createHandler, StartServer } from "@solidjs/start/server";

export default createHandler(() => {
console.log("this does not run if ssr: false");

return <StartServer document={({ assets, children, scripts }) => <></>} />;
});
import { createHandler, StartServer } from "@solidjs/start/server";

export default createHandler(() => {
console.log("this does not run if ssr: false");

return <StartServer document={({ assets, children, scripts }) => <></>} />;
});
1 Reply
exercise
exerciseOP2mo ago
because then / will be prerendered, makes sense

Did you find this page helpful?