Felipe97/llama-cpp-compiled
01.2k
1import adapter from '@sveltejs/adapter-static';2import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';3import { mdsvex } from 'mdsvex';4 5// CMake sets LLAMA_UI_OUT_DIR to the staging dir under the build tree; manual6// `npm run build` runs without the env var default to ./dist.7const outDir = process.env.LLAMA_UI_OUT_DIR ?? './dist';8/** @type {import('@sveltejs/kit').Config} */9const config = {10 extensions: ['.svelte', '.svx'],11 12 kit: {13 adapter: adapter({14 assets: outDir,15 fallback: 'index.html',16 pages: outDir,17 precompress: false,18 strict: true19 }),20 output: {21 bundleStrategy: 'single'22 },23 paths: {24 relative: true25 },26 router: { type: 'hash' }27 },28 29 // Consult https://svelte.dev/docs/kit/integrations30 // for more information about preprocessors31 preprocess: [vitePreprocess(), mdsvex()]32};33 34export default config;35 