A Svelte 5 template with a built-in SPA router and a responsive header/navbar as a bonus ( you can remove it if you want ). This preset is designed to help developers who face routing issues when deploying Svelte apps on IIS.
When deploying a normal SvelteKit project that uses the standard svelte filesystem-based routing on IIS, routing often breaks because IIS does not handle client-side routing properly. This template provides a simple SPA (Single Page Application) routing solution, ensuring smooth navigation without server-side configuration headaches.
npx degit denzeysenpai/svelte5-spa-preset-1 my-svelte-app
cd my-svelte-app
npm install
npm run dev
src/routes.ts
src/components/Header.svelte
npm run build
build/
folder to your IIS site directoryMIT License. Feel free to use and modify!
If you run into CORS issues, routing problems, or deployment errors, feel free to open an issue or ask for support!