Use Vite for server side rendering in Node
MIT License
Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
--open
, --port 1337
or --ssr path
.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
vite-ssr dev
🎉body
, head
, bodyAttrs
and htmlAttrs
) aside from the current html
(which assembles everything).initialState
is now available in the main Vue hook during SSR in order to ease integration with Vuex or serverPrefect
calls.render({ request, ... })
to render(url, { ... })
. Vite SSR doesn't need the request
object, just the URL. You can still pass the request in the options if you need access to it from your app code.Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
initialState
, request
and any other custom properties to the SSR context (accessible using Vue's useSsrContext()
).Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
Published by frandiox over 3 years ago
Published by frandiox almost 4 years ago
Stable release.
Published by frandiox almost 4 years ago
Initial release