Vue with Vite
Serve Flame next to a Vue application while keeping Vue Router and the documentation routes separate.
Use this guide for a Vue application built with Vite. Complete the shared setup in the Vue project, with experimental.pages: true and meta.basePath: "/docs". For Nuxt, use the Nuxt guide.
Local development
Extend the existing Vite configuration:
Run npm run dev and npm run docs:dev in separate terminals. The app is at http://localhost:5173/, and docs are at http://localhost:5173/docs/. The proxy preserves the docs prefix and forwards the SSE reload endpoint. See Vite's proxy configuration.
Link from Vue
Let the browser load the docs as a complete document:
Use this anchor at the boundary between the application and Flame. Vue Router's RouterLink and router.push handle application navigation; docs use their own HTML and browser bundle. Keep service worker navigation rules from serving the Vue shell for /docs requests. See Vue Router navigation.
Build and publish
Keep Vite's existing build, then append the docs build and copy:
Run npm run build and publish dist/. For an npm workspace, use the monorepo commands and adjust the copy destination to the Vue workspace's output.
Configure the host using Vercel, Cloudflare, Heroku or Netlify. The dev proxy does not carry into production. Serve /docs/* before the Vue SPA fallback so a missing guide returns 404 instead of the app shell.
Verify clicking the docs link, refreshing a nested docs URL, loading search and requesting a missing guide with the shared checks.
Last updated Nov 7, 2026