fix: allow Vite to serve files from linked providers directory

Add server.fs.allow configuration to permit serving WASM files
from the symlinked local-libs/@p-stream/providers directory.
This commit is contained in:
aq 2025-12-03 22:18:42 +04:00
parent 5c5f80c3b6
commit 42a18778eb

View file

@ -26,6 +26,16 @@ export default defineConfig(({ mode }) => {
return {
base: env.VITE_BASE_URL || "/",
assetsInclude: ['**/*.wasm'],
server: {
fs: {
allow: [
// Default: allow serving files from project root
path.resolve(__dirname),
// Allow serving from the linked providers directory
path.resolve(__dirname, '../providers/@p-stream/providers'),
],
},
},
plugins: [
million.vite({ auto: true, mute: true }),
handlebars({