mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +00:00
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:
parent
5c5f80c3b6
commit
42a18778eb
1 changed files with 10 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue