Skip to content

Commit

Permalink
allow font loading from common folder in dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
david-loe committed Feb 5, 2025
1 parent e64715b commit f13031d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
import { searchForWorkspaceRoot } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'

// https://vitejs.dev/config/
Expand All @@ -23,7 +24,13 @@ export default {
}
})
],
server: { port: 80, strictPort: true, host: '0.0.0.0', allowedHosts: [process.env.VITE_FRONTEND_URL?.replace(/^https?:\/\//, '')] },
server: {
port: 80,
strictPort: true,
host: '0.0.0.0',
allowedHosts: [process.env.VITE_FRONTEND_URL?.replace(/^https?:\/\//, '')],
fs: { allow: [searchForWorkspaceRoot(process.cwd()), '../common'] }
},
preview: { port: 80, host: '0.0.0.0' },
resolve: {
alias: {
Expand Down

0 comments on commit f13031d

Please sign in to comment.