WaspW
Wasp2y ago
Gwaggli

fontsource not included in .wasp/out

I am using the @fontsource package to include google fonts and this was working just fine locally and on production. But since the migration to v.0.12 it is not working anymore locally.
Vite complains with the following message:
The request url "/Users/path/to/repository/node_modules/@fontsource/roboto/files/roboto-latin-400-normal.woff2" is outside of Vite serving allow list.


Which makes sense as it is not inside the .wasp/out folder.
Neither way of importing the @fontsource package works (from a .tsx file nor .scss)

Am i missing something? The deployed version of the app works just fine.
Was this page helpful?