feat: prerender public site pages

This commit is contained in:
2026-05-04 16:29:50 -04:00
parent 55d8acef4c
commit 4fba72e99c
14 changed files with 380 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ import { resolve } from 'path'
import { visualizer } from 'rollup-plugin-visualizer'
// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig(({ isSsrBuild }) => ({
plugins: [
visualizer({
filename: './dist/stats.html',
@@ -37,7 +37,7 @@ export default defineConfig({
build: {
sourcemap: true, // Enable source maps for debugging
rollupOptions: {
output: {
output: isSsrBuild ? undefined : {
manualChunks: {
vue: ['vue'],
vuetify: ['vuetify'],
@@ -59,4 +59,4 @@ export default defineConfig({
json: {
stringify: false
}
})
}))