mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 12:12:17 +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 {
|
return {
|
||||||
base: env.VITE_BASE_URL || "/",
|
base: env.VITE_BASE_URL || "/",
|
||||||
assetsInclude: ['**/*.wasm'],
|
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: [
|
plugins: [
|
||||||
million.vite({ auto: true, mute: true }),
|
million.vite({ auto: true, mute: true }),
|
||||||
handlebars({
|
handlebars({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue