nuxt-modules / google-fonts

Google Fonts module for NuxtJS
https://google-fonts.nuxtjs.org
MIT License
497 stars 41 forks source link

400 bad request #194

Open nandi95 opened 2 months ago

nandi95 commented 2 months ago

After updating from v3.1.3 to v3.2.0 I get a bad request on the endpoint it generates: https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,600;0,500;0,700;1,400&display=swap&subset=latin

The same request succeeds on it's /css not /css2

nuxt.config.ts

googleFonts: {
    display: 'swap',
    outputDir: 'src/assets/google-fonts',
    subsets: 'latin',
    families: {
        Raleway: {
            wght: [400, 600, 500, 700],
            ital: [400]
        }
    }
},

perhaps this is to do with https://github.com/nuxt-modules/google-fonts/pull/184 ?

letoast commented 3 weeks ago

Interesting... this happened to me when I upgraded to nuxt@3.12 from nuxt@3.11.2 (the only dependency I upgraded)