Prerender not working without javascript

Hello i just made my appm using solid start and i want to do prerendering. Everything compiles but when i load the page without javascript i have an empty page still. Is this normal? Here is my app.config
export default defineConfig({
vite: {
plugins: [],
},
ssr: true,
server: {
static: true,
prerender: {
routes: ["/"],
},
preset: "github-pages",
},
});
export default defineConfig({
vite: {
plugins: [],
},
ssr: true,
server: {
static: true,
prerender: {
routes: ["/"],
},
preset: "github-pages",
},
});
4 Replies
Brendonovich
Brendonovich2mo ago
Start uses streaming ssr by default, you’ll want to add mode: async to your createHandler call in entry-server
loucass003
loucass003OP2mo ago
so this function ?
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
making it async ?
Brendonovich
Brendonovich2mo ago
Checkout the type of createHandler, it takes an object as it’s second argument
loucass003
loucass003OP2mo ago
ok i see it. Is this documented somewhere? this is really hard to find xD yep that did it thanks ❤️

Did you find this page helpful?