Welcome to Fastify DX for Vue!
Fastify DX for Vue is a renderer adapter for fastify-vite.
It lets you run and SSR (server-side render) Vue 3 applications built with Vite on Fastify, with a minimal and transparent server-first approach — everything starts with server.js
, your actual Fastify server.
It also provides a set of built-in utilities for ease of development and managing a universal JavaScript context (SSR to CSR), very much like Nuxt.js, Next.js and Remix. Both Fastify DX for Vue and Fastify DX for React implement the URMA specification and have almost the same API, with only minimal differences due to specific framework APIs or idioms.
Please refer to the README for install and usage instructions.
This is the very first alpha release, but very few architectural or API changes are likely to take place before the first major release. This is a testing release, meant to provide a playground for early adopters willing to help find any lingering bugs.
Production use is not advised, but if you're brave enough, please file an issue describing your experience.
Known issues
This release is provided in ESM only. A CJS bundle will be part of the next release.
Sometimes you need to add things to ssr.external
in vite.config.js
.
There's no hot reload for the context.js
file and the getData()
, getMeta()
and onEnter()
hooks.
This will be fixed before the first major release.
You'll see the following message when running in development mode:
Sourcemap for "/dx:create.js" points to missing source files
Sourcemap for "/dx:core.js" points to missing source files
They can be safely ignored.