SolidJSS
SolidJSβ€’3y agoβ€’
2 replies
ChrisThornham

How Do I Turn On SSR?

When I started my project, I enabled SSR. I thought that was all I had to do.

But in Ryan's "The Shape of Frameworks to Come" stream on YouTube, he edits the vite.config.ts file from:

import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});


To:
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({ start: { ssr: true }});


Is that all you have to do? Or is there more to it?

I don't see this step in the SolidStart docs.

I assumed SolidStart controlled SSR. But if there is no information about turning on SSR in the SolidStart docs, then I must be wrong.

So, is SSR a Vite thing? A SolidJS thing? Where can I read/learn more about working with and configuring SSR?

Thanks,

Chris
Was this page helpful?