SvelteKit 2 website for Löwenware — single-page home with localized routes, blog, and product pages.
- SvelteKit 2 + Svelte 5 + TypeScript
- @sveltejs/adapter-static (fully prerendered static site in
build/) - Tailwind CSS 4 + Skeleton UI 3
- svelte-i18n (EN / CS — CS content falls back to EN until translated)
cp .env.example .env
npm install
npm run dev # http://localhost:3000| Script | Description |
|---|---|
npm run dev |
Development server |
npm run build |
Production static build (build/) |
npm run preview |
Preview production build |
npm run check |
TypeScript / Svelte checks |
npm run lint |
Prettier + ESLint |
npm run lint:md |
Markdownlint on content/ |
npm run redirects:nginx |
Generate deploy/nginx-redirects.conf |
content/en/— English markdown (blog posts:YYYYMMDD_{slug}.md)content/cs/— Reserved for Czech content (empty; EN fallback active)old/— Legacy Next.js site (reference only)src/lib/server/markdown/— Markdown pipeline + domain loaderssrc/lib/shared/redirects.ts— Legacy URL redirect map
| URL | Description |
|---|---|
/en/ |
Home (About, Products, Technologies, Blog preview, Contact) |
/en/dotrix/ |
Dotrix product page |
/en/lowenbooks/ |
Löwenbooks placeholder |
/en/blog/ |
Blog listing |
Legacy URLs (e.g. /dotrix/, /about/) redirect to new EN routes via deploy/nginx-redirects.conf on the production nginx host. A root static/index.html redirects / to /en/ when served as static files.
CI builds a static site with npm run build and deploys the build/ directory via rsync (see .github/workflows/). Production nginx must include deploy/nginx-redirects.conf for legacy path redirects and / → /en/.
See .env.example for ORIGIN.