S
SolidJS4mo ago
Joe Pea

how to disable server output, enable *only* pre-rendering?

When I enable pre-rendering (SSG) with server.prerender.crawLinks = true, the npm run build command outputs both a server and static pre-render. How do we configure it to output only SSG without the server output?
2 Replies
Brendonovich
Brendonovich4mo ago
I don’t think this is possible - the server build is what’s used to generate the pre-rendered html. Using preset: ‘static’ will produce only a client build but i don’t think pre-rendering will work properly
Joe Pea
Joe PeaOP4mo ago
Hmm, so maybe the solution is to just .gitignore the server output?
Want results from more Discord servers?
Add your server