useFastify

Returns reference to the Fastify server instance, only available in SSR.

import { useFastify } from 'fastify-vite-vue/server'
import { useFastify } from 'fastify-vite-react/server'
const fastify = useFastify()

This reference is also included in useHydration's return object as fastify.