Skip to content

Commit

Permalink
fix: vite to allow serve fonts from blocknote and root of workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabhag8848 committed Aug 6, 2024
1 parent 2b311b5 commit c669c21
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/twenty-front/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import react from '@vitejs/plugin-react-swc';
import wyw from '@wyw-in-js/vite';
import path from 'path';
import { defineConfig, loadEnv } from 'vite';
import { defineConfig, loadEnv, searchForWorkspaceRoot } from 'vite';
import checker from 'vite-plugin-checker';
import svgr from 'vite-plugin-svgr';
import tsconfigPaths from 'vite-tsconfig-paths';
Expand Down Expand Up @@ -40,6 +40,12 @@ export default defineConfig(({ command, mode }) => {
server: {
port: 3001,
host: 'localhost',
fs: {
allow: [
searchForWorkspaceRoot(process.cwd()),
'**/@blocknote/core/src/fonts/**',
],
},
},

plugins: [
Expand Down

0 comments on commit c669c21

Please sign in to comment.