what is the difference between nitro compression and vite compression in nuxt3

1.3k Views Asked by At

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' }),
            ....
        ]
    }

0

There are 0 best solutions below