Skip to content

Lite version (View & Router without SSR) #783

Answered by ryansolid
rrjanbiah asked this question in Q&A
Discussion options

You must be logged in to vote

All the basic templates should output something that can be hosted statically for client rendering. You just need to publish the dist folder.

I'd start with either the base JS or TS templates as described here: https://www.solidjs.com/guides/getting-started#getting-started

This creates a new Vite project that is setup for client side rendering. From this it does start a server in dev when you run npm run dev. But the npm run build command generates static files that can be hosted. I will mention that for Github pages specifically sometimes it takes some hacks to make a SPA work properly, but like Netlify, Vercel, or most other hosts will have an option to redirect all unmatched traffic to…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rrjanbiah
Comment options

@rrjanbiah
Comment options

@ryansolid
Comment options

@rrjanbiah
Comment options

Answer selected by rrjanbiah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants