A SolidJS 1.9 single-page app starter in strict TypeScript, built with Vite 7 and Solid Router, for developers who want fine-grained reactivity in a ready project. It includes a shared layout, Home, About and 404 pages, CSS Modules, ESLint, tsc type checking and Vitest with Solid Testing Library.
by Light CloudSingle-page apps


Solid compiles JSX into direct DOM updates, so a signal change updates only the text that reads it, with no virtual DOM diffing. The starter pairs that with strict TypeScript and typed environment variables, so mistakes show up in your editor and in pnpm typecheck. Start by editing src/pages/Home.tsx and adding pages to the route table in src/App.tsx. Deploying runs the build script and serves dist/ from a CDN, with unknown paths falling back to index.html for Solid Router.
Create a component in src/pages/, add a Route for it inside the Router in src/App.tsx (wrap it in lazy() to load it on demand), and add an A link in src/components/Layout.tsx.
Add it to .env.local with a VITE_ prefix, declare it in src/env.d.ts, and read it with import.meta.env. Values are fixed at build time, so never put secrets in them.
Yes. npm install and npm run dev use the same scripts. npm creates its own package-lock.json; delete pnpm-lock.yaml if you switch for good.
The host is looking for a file at that path and finds none. Configure it to serve index.html for unknown paths; Light Cloud does this for you.
Yes. Run pnpm build and serve dist/ from any static host, such as Netlify, Cloudflare Pages or nginx, with a fallback to index.html for client-side routes.