mix vitex.ssr.build (Vitex v0.1.1)
View SourceBuilds Server-Side Rendering (SSR) assets via Vite.
This task is a convenience wrapper for building SSR assets.
It runs vite build --ssr
with the appropriate environment.
Usage
$ mix vitex.ssr.build
The task will install dependencies if needed and then run the SSR build.
Configuration
Ensure your vite.config.js has SSR configuration:
phoenix({
input: 'js/app.js',
ssr: 'js/ssr.js',
ssrOutputDirectory: '../priv/ssr',
// ... other options
})