A self-hosted household ledger.
0

Configure Feed

Select the types of activity you want to include in your feed.

quantum / svelte.config.js
865 B 20 lines
1import adapterNode from "@sveltejs/adapter-node"; 2import adapterDeno from "@deno/svelte-adapter"; 3import process from "node:process"; 4 5// Detection + output selection for `deno desktop` (add-desktop-local-remote-modes). 6// 7// SvelteKit itself IGNORES this file — the real build config is passed inline to 8// the `sveltekit()` plugin in vite.config.ts (SvelteKit warns it's ignored). But 9// `deno desktop` reads THIS file to (a) detect the framework as SvelteKit — without 10// it, it treats us as generic Vite and looks for a nonexistent `dist/` — and (b) 11// decide which adapter's output to package. So the adapter here MUST match 12// vite.config.ts: Deno adapter (.deno-deploy) for the desktop build, adapter-node 13// otherwise. 14const adapter = process.env.QUANTUM_TARGET === "desktop" 15 ? adapterDeno() 16 : adapterNode(); 17 18export default { 19 kit: { adapter }, 20};