import adapter from '@sveltejs/adapter-node'; import preprocess from 'svelte-preprocess'; // config extensions import { mdsvex } from 'mdsvex'; import mdsvexConfig from './mdsvex.config.js'; /** @type {import('@sveltejs/kit').Config} */ const config = { extensions: ['.svelte', ...(mdsvexConfig.extensions || [])], // Consult https://github.com/sveltejs/svelte-preprocess // for more information about preprocessors preprocess: [ preprocess({ postcss: true }), mdsvex(mdsvexConfig) ], kit: { adapter: adapter({ out: 'build', precompress: false }), // Aliases need tsconfig explicit inclusion alias: { $lib: './src/lib', $root: './', $src: './src', $routes: './src/routes', }, env: { publicPrefix: "PUBLIC_", }, // https://kit.svelte.dev/docs/configuration#alias }, }; export default config;