fix: db worker not working in build
This commit is contained in:
parent
491a2eb7ad
commit
8dab59f657
2 changed files with 6 additions and 4 deletions
|
@ -1,16 +1,14 @@
|
|||
import { Kysely } from "kysely";
|
||||
import type { DB } from "./db-schema";
|
||||
import { OfficialWasmWorkerDialect } from "~/lib/kysely-official-wasm-worker";
|
||||
import wasmWorkerUrl from "~/lib/kysely-official-wasm-worker/worker?url";
|
||||
import WasmWorker from "./db-worker?worker";
|
||||
import { createSignal } from "solid-js";
|
||||
|
||||
export const SELF_ID = 2;
|
||||
|
||||
export const DB_FILENAME = "signal.sqlite";
|
||||
|
||||
export const worker = new Worker(wasmWorkerUrl, {
|
||||
type: "module",
|
||||
});
|
||||
export const worker = new WasmWorker();
|
||||
|
||||
const dialect = new OfficialWasmWorkerDialect({
|
||||
fileName: DB_FILENAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue