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

export default {
  preprocess: vitePreprocess(),
  kit: {
    adapter: adapter({
      pages: 'build',
      assets: 'build',
      fallback: 'index.html',
      precompress: false,
      strict: false
    }),
    files: {
      assets: 'static'
    },
    alias: {
      // test-only helper barrel; resolves the same way $lib does so test
      // files can import shared mock factories without ../../../ chains.
      '$test-utils': 'src/test-utils',
      '$test-utils/*': 'src/test-utils/*'
    }
  }
};
