Something went wrong. Try again.
A self-hosted household ledger.
Something went wrong. Try again.
123456789101112131415161718192021import adapterNode from "@sveltejs/adapter-node";import adapterDeno from "@deno/svelte-adapter";import process from "node:process";
// Detection + output selection for `deno desktop` (add-desktop-local-remote-modes).//// SvelteKit itself IGNORES this file — the real build config is passed inline to// the `sveltekit()` plugin in vite.config.ts (SvelteKit warns it's ignored). But// `deno desktop` reads THIS file to (a) detect the framework as SvelteKit — without// it, it treats us as generic Vite and looks for a nonexistent `dist/` — and (b)// decide which adapter's output to package. So the adapter here MUST match// vite.config.ts: Deno adapter (.deno-deploy) for the desktop build, adapter-node// otherwise.const adapter = process.env.QUANTUM_TARGET === "desktop" ? adapterDeno() : adapterNode();
export default { kit: { adapter },};