Is it recommended to use Start even if you don't need it?
Hello guys,
I don't need any serverside stuff and would like to know if I should stick to Solid + Router instead? 🙂
Do I get any benefits from Start ( AFAIK it's not batteries included, I still have to install the router package )
7 Replies
Solid Start does ship with the router preconfigured with file routes (only available in start).
Start is SPA first with additional optional features for server stuff.
Another nice feature is preconfigured SSR (which also allows build time only like SSG) and deployment presets for any host.
I start all my projects with it now, I don't see any cons over vanilla Solid + Vite
Start is also compatible with Tanstack Router (difference in features) but using Astro or Tanstack Start is also a good choice
@jer3m01 thanks! 🙂
Unfortunately I wasn't able to find things in the docs like
"How to build for SPA / SSG only" ( like basic Solid apps )
for SPA only set
ssr: false
in app.config.ts
for SSG set
ah thanks a lot 🙂 Taken from here?
https://docs.solidjs.com/solid-start/reference/config/define-config#parameters
So when using
ssr: false
Start turns into a basic Solid app with file based routing?defineConfig - SolidDocs
Documentation for SolidJS, the signals-powered UI framework
yes only does client side
@jer3m01 one stupid question... sorry.
When having
ssr: false,
where do I find the build files for deployment? I don't think it's inside the .vinxi
dir. So I had a look at .output
. Is it in /.output/public
... ?
I'm not sure there are a lot of server files and stuff 🤔yeah output/public should have the html and js bundles