Skip to content

Commit b3b6df5

Browse files
committed
Fix path for SQLite wasm for right caching
1 parent 2f1d0f8 commit b3b6df5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/composables/useSQLite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function useSQLite() {
2020

2121
try {
2222
SQL = await initSqlJs({
23-
locateFile: file => `assets/wasm/${file}`
23+
locateFile: file => `wasm/${file}`
2424
});
2525
isInitialized = true
2626
}

frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default defineConfig(({ mode }) => {
5151
targets: [
5252
{
5353
src: normalizePath(path.resolve(__dirname, './node_modules/sql.js/dist/sql-wasm-browser.wasm')),
54-
dest: 'assets/wasm'
54+
dest: 'wasm'
5555
}
5656
]
5757
}),

0 commit comments

Comments
 (0)