Skip to content

Commit

Permalink
Allow vite to access parent folder
Browse files Browse the repository at this point in the history
This caused issues with dev mode, as it could no longer access the `pkg`
folder from the WASM build.
  • Loading branch information
battesonb committed Jun 14, 2023
1 parent 50bcd7e commit 382d5db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions www/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion www/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ const config: UserConfigExport = {
plugins: [
wasm(),
topLevelAwait(),
]
],
server: {
fs: {
allow: ['..'],
},
},
};

export default defineConfig(config);

0 comments on commit 382d5db

Please sign in to comment.