1

For SEO purposes I want to zip and distribute my files.

Both vite and nitro have compression options.

What's the difference between the two?

This is my nuxt.config.ts

export default defineNuxtConfig({

    nitro: {
        compressPublicAssets: true,
        ...
    },
    vite: {
        plugins: [
            viteCompression({ algorithm: 'brotliCompress' }),
            ....
        ]
    }

kissu
  • 40,416
  • 14
  • 65
  • 133
Lawyer Kenny
  • 363
  • 4
  • 16

0 Answers0