-
Apologies if this is already possible, but I can't seem to find it by random searches. Is there any easy option to get the lite version of the Solid? Especially without the SSR. Context: I'm looking to build dynamic SPA site in static hosting such as GitHub pages. As the Solid's view seems to be faster, want to make use of it. I was directed to the starter kit and that launches the server. Is there any lite version available already? If not, can you please guide on how to extract that? TIA |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
All the basic templates should output something that can be hosted statically for client rendering. You just need to publish the 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 Hope that helps. |
Beta Was this translation helpful? Give feedback.
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 thenpm 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…