[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

roe.dev / modules / bundle.ts
793 B 33 lines
1import { defineNuxtModule } from 'nuxt/kit' 2import { defu } from 'defu' 3 4export default defineNuxtModule({ 5 meta: { 6 name: 'nuxt-vite-config', 7 }, 8 setup (options, nuxt) { 9 if (process.env.DISABLE_PRERENDER !== 'true') return 10 11 nuxt.options.vite = defu(nuxt.options.vite, { 12 $client: { 13 build: { 14 rollupOptions: { 15 output: { 16 chunkFileNames: '_nuxt/[name].js', 17 entryFileNames: '_nuxt/[name].js', 18 }, 19 }, 20 }, 21 }, 22 }) 23 24 // We disable prerendering to speed up the bundle test. 25 nuxt.hook('prerender:routes', routes => { 26 routes.routes.clear() 27 }) 28 nuxt.hook('nitro:config', config => { 29 config.prerender ||= {} 30 config.prerender.crawlLinks = false 31 }) 32 }, 33})