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

/** @type {import('@sveltejs/kit').Config} */
const config = {
  preprocess: vitePreprocess(),
  kit: {
    adapter: adapter(),
    alias: {
      $lib: 'src/lib',
      '$lib/*': 'src/lib/*',
      '$lib/utils': 'src/lib/utils',
      '$lib/utils/*': 'src/lib/utils/*',
      '$lib/hooks': 'src/lib/hooks',
      '$lib/hooks/*': 'src/lib/hooks/*',
      '$lib/components': 'src/lib/components',
      '$lib/components/*': 'src/lib/components/*',
      '$lib/components/ui': 'src/lib/components/ui',
      '$lib/components/ui/*': 'src/lib/components/ui/*',
    },
  },
};

export default config;