View Source LiveVue.SSR.ViteJS (LiveVue v0.4.1)
Implements SSR by making a POST request to http://{:vite_host}/ssr_render
.
ssr_render
is implemented as a Vite plugin. You have to add it to the vite.config.js
plugins section.
import liveVueSSRPlugin from "live_vue/vitePlugin"
{
publicDir: "static",
plugins: [vue(), liveVueSSRPlugin()],
// ...
}
Summary
Functions
Callback implementation for LiveVue.SSR.render/3
.
A handy utility returning path relative to Vite JS host.
Functions
Callback implementation for LiveVue.SSR.render/3
.
A handy utility returning path relative to Vite JS host.