Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] twenty-front vite package causing error logs due to vite trying to serve blocknote fonts which is outside of allow list #6546

Closed
1 task done
Nabhag8848 opened this issue Aug 5, 2024 · 2 comments · Fixed by #6552

Comments

@Nabhag8848
Copy link
Contributor

Nabhag8848 commented Aug 5, 2024

Bug Description

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.
 ----
twenty

We have two solutions

  1. 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.
  2. 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.
@Nabhag8848
Copy link
Contributor Author

@CoreTeamTwenty Lemme know, How should we proceed with this ?

@FelixMalfait
Copy link
Member

@Nabhag8848 thanks for raising this! I'd say we can go with the first option and add the path to the allow list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants