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({
      out: 'build',
      env: {
        port: process.env.PORT || 5173
      }
    }),
    alias: {
      $lib: './src/lib',
      $components: './src/lib/components'
    }
  }
};

export default config;
