Skip to content

Commit

Permalink
fix: Add WASM files to Vite Allow List and change devPath to localhos…
Browse files Browse the repository at this point in the history
…t to fix Web Example (#5560)

Co-authored-by: Ben Wishovich <ben@benw.is>
  • Loading branch information
benwis and Ben Wishovich committed Nov 6, 2022
1 parent 777c086 commit 878421b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/web/core/tauri/tauri.conf.json
Expand Up @@ -2,7 +2,7 @@
"build": {
"beforeBuildCommand": "yarn build:tauri",
"beforeDevCommand": "yarn dev:tauri",
"devPath": "http://127.0.0.1:5173",
"devPath": "http://localhost:5173",
"distDir": "../../build"
},
"package": {
Expand Down
6 changes: 6 additions & 0 deletions examples/web/vite.config.ts
Expand Up @@ -25,6 +25,12 @@ if (TARGET === 'web') {
}

const config: UserConfig = {
server: {
fs: {
// Allow serving the wasm file from this folder.
allow: ['.']
}
},
plugins,
resolve: {
alias: {
Expand Down

0 comments on commit 878421b

Please sign in to comment.