mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-04 14:46:42 +00:00
21 lines
619 B
JavaScript
21 lines
619 B
JavaScript
// Tauri doesn't have a Node.js server to do proper SSR
|
|
// so we will use adapter-static to prerender the app (SSG)
|
|
// 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(),
|
|
alias: {
|
|
"@/*": "./src/lib/*",
|
|
"@kksh/ui/*": "../../packages/ui/*",
|
|
"@kksh/svelte5/*": "../../node_modules/@kksh/svelte5/src/lib/*",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|