N
Nuxt9mo ago
wszymanski

Loading fonts in CSS file, when Nuxt is server with router.base path

Hello! I am using Nuxt 2 in larger set of websites, with router.base property adding a /something suffix to the main domain. Everything seems to work fine, most static files apart from... fonts loaded in CSS. The code example below tries to GET via domain.com/_nuxt, excluding the base path from nuxt.config, thus hitting 404. Anyone came across this issue and knows how to solve? src: url('~assets/fonts/font-light.woff2') format('woff2');
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server