Deploy Vue Vitesse [Oct 26]
π Opinionated Vite + Vue starter (Oct 2026)
vitesse-railway
Just deployed
Deploy and Host Vue Vitesse on Railway
Opinionated Vite + Vue starter, synced with antfu-collective/vitesse at a878526 (6 Oct 2026). One click builds the static site and serves it with Caddy.
About Hosting Vue Vitesse
Railpack installs Node 24, pnpm 10.30.2, and Caddy 2.11.7, then runs pnpm build. vite-ssg writes the site to dist. Caddy listens on Railway's $PORT and serves those files.
- Pre-rendered routes such as
/aboutare served from their.htmlfiles - Unknown paths fall back to
index.htmlfor client-side routing GET /healthreturnsok
Requires Node.js 22.22.2+, 24.15.0+, or 26+. This snapshot includes Vite 8, Vue Router 5, beasties, and the Cypress install fix for a warm pnpm cache.
> Note: This template is created during the early transition of Vue 3 and Vite. At this moment, if you are seeking for better Vue developer experience and more consistent maintenance, we recommend using Nuxt instead (it also works perfectly with SPA or SSG as needed). This template still serves as a reference, but expect slower updates.
Why Deploy Vue Vitesse on Railway?
- The October 2026 stack is already pinned: Vite 8, Vue 3.5, Vue Router 5, Pinia 4, UnoCSS.
- No extra services. The build is static and Caddy is the only runtime process.
- HTTPS and the public domain come from Railway. Caddy leaves TLS to the platform.
/healthis a real check, separate from the app HTML.
Common Use Cases
- Mock a Vue 3 app with file-based routing, layouts, and i18n already wired.
- Ship a static PWA with markdown pages and UnoCSS.
- Start a client-rendered prototype that still pre-renders the public routes.
Dependencies for Vue Vitesse Hosting
Deployment Dependencies
- Vue 3 and Vite 8 (
vite8.3) - pnpm 10.30.2
- Caddy 2.11.7
- vite-ssg 28.3 and beasties for critical CSS
- Upstream commit a878526
Features
-
π File based routing via Vue Router 5 (
vue-router/vite) -
π Layout system
-
π² PWA
-
π¨ UnoCSS - the instant on-demand atomic CSS engine
-
π I18n ready
-
π Markdown Support
-
π₯ Use the new script setup syntax
-
π₯ APIs auto importing - use Composition API and others directly
-
π¨ Static-site generation (SSG) via vite-ssg
-
π¦ Critical CSS via beasties
-
π¦Ύ TypeScript, of course
-
βοΈ Unit Testing with Vitest, E2E Testing with Cypress on GitHub Actions
-
βοΈ One-click deploy on Railway, with Caddy in front of the static build
Pre-packed
UI Frameworks
- UnoCSS - The instant on-demand atomic CSS engine.
Icons
- Iconify - use icons from any icon sets πIcΓ΄nes
- Pure CSS Icons via UnoCSS
Plugins
- Vue Router 5 - file system based routing through
vue-router/vitevite-plugin-vue-layouts- layouts for pages
- Pinia - Intuitive, type safe, light and flexible Store for Vue using the composition api
unplugin-vue-components- components auto importunplugin-auto-import- Directly use Vue Composition API and others without importingvue-macros- Explore and extend more macros and syntax sugar to Vue.vite-plugin-pwa- PWAunplugin-vue-markdown- Markdown as components / components in Markdown@shikijs/markdown-exit- Shiki for syntax highlighting
- Vue I18n - Internationalization
unplugin-vue-i18n- unplugin for Vue I18n
- VueUse - collection of useful composition APIs
vite-ssg-sitemap- Sitemap generator@unhead/vue v2- manipulate document head reactivelyvite-plugin-vue-devtools- Designed to enhance the Vue developer experience.
Coding Style
- Use Composition API with script setup SFC syntax
- ESLint with @antfu/eslint-config, single quotes, no semi.
Dev tools
- TypeScript
- Vitest - Unit testing powered by Vite
- Cypress - E2E testing
- pnpm - fast, disk space efficient package manager
vite-ssg- Static-site generation- beasties - Critical CSS
- Caddy - serves the production build on Railway
- VS Code Extensions
- Vite - Fire up Vite server automatically
- Volar - Vue 3 script setup IDE support
- Iconify IntelliSense - Icon inline display and autocomplete
- i18n Ally - All in one i18n support
- ESLint
Variations
Official and community forks, including Vitesse Lite and Vitesse Nuxt, are listed in the upstream variations.
Usage
Development
Requires Node.js 22.22.2+, 24.15.0+, or 26+.
pnpm i
pnpm dev
Build
pnpm build
The static site is written to dist.
Deploy on Railway
Use the button above, or deploy this directory with the Railway CLI:
railway up
Caddy listens on $PORT and serves dist.
Template Content
vitesse-railway
marco-quintella/vitesse-railway