Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
add svelte.config.js for SPA configuration with adapter-static
Tonho4f4660aa6dbe
diff --git a/svelte.config.js b/svelte.config.jsnew file mode 100644index 00000000..a7830eaa--- /dev/null+++ b/svelte.config.js@@ -0,0 +1,18 @@+// Tauri doesn't have a Node.js server to do proper SSR+// so we use adapter-static with a fallback to index.html to put the site in SPA mode+// See: https://svelte.dev/docs/kit/single-page-apps+// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info+import adapter from "@sveltejs/adapter-static";+import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";++/** @type {import('@sveltejs/kit').Config} */+const config = {+ preprocess: vitePreprocess(),+ kit: {+ adapter: adapter({+ fallback: "index.html",+ }),+ },+};++export default config;