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

/** @type {import('@sveltejs/kit').Config} */
const config = {
    preprocess: vitePreprocess(),
    kit: {
        adapter: adapter({ out: "build" }),
        experimental: {
            remoteFunctions: true,
            tracing: { server: true },
            instrumentation: { server: true },
        },
    },
    compilerOptions: {
        experimental: { async: true },
    },
};

export default config;
