You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As can be seen in screenshot, twenty-front vite package causing error logs due to vite trying to serve blocknote fonts which is outside of allow list, because by default vite restrict serving files outside of workspace root
we have not set the serving strict, so by default its restricting to serve only from workspace root which is causing the below error.
The request url "**/twenty/node_modules/@blocknote/core/src/fonts/inter-v12-latin/inter-v12-latin-regular.woff" is outside of Vite serving allow list.
The request url "**/twenty/node_modules/@blocknote/core/src/fonts/inter-v12-latin/inter-v12-latin-500.woff2" is outside of Vite serving allow list.
----
We have two solutions
In order to solve it: we must include the path to file "@blocknote/path/to/font" in the allow list under package.json (server.fs.allow) that could be served.
or we can set server.fs.strict:false to serve to override the default behaviour of restricting serving files just from workspace root.
willing to push changes and make a pr -> waiting for confirmation.
The text was updated successfully, but these errors were encountered:
Bug Description
As can be seen in screenshot, twenty-front vite package causing error logs due to vite trying to serve blocknote fonts which is outside of allow list, because by default vite restrict serving files outside of workspace root
refer here as mentioned: https://vitejs.dev/config/server-options.html#server-fs-strict , https://vitejs.dev/guide/#index-html-and-project-root (third paragraph is helpful)
we have not set the serving strict, so by default its restricting to serve only from workspace root which is causing the below error.
We have two solutions
The text was updated successfully, but these errors were encountered: