import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	preprocess: [vitePreprocess()],
	vitePlugin: {
		inspector: {
			toggleKeyCombo: 'control-alt-shift',
			showToggleButton: 'always',
			toggleButtonPos: 'bottom-right'
		}
	},
	kit: {
		adapter: adapter(),
		alias: {
			$: './src',
			$lib: './src/lib',
			'@': './src'
		}
	},
	compilerOptions: {
		enableSourcemap: process.env.NODE_ENV === 'development',
		css: 'injected'
	}
};

export default config;
