Dough Git

clove/pkviewer

web/svelte.config.js

back to web

/* web/svelte.config.js */
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: {
      // Shared theme, CSS and recognition code lives with the API
      "@pkviewer/shared": "../api/shared/index.ts",
    },
    experimental: {
      // Management actions are remote commands, the counterpart of Next's server actions
      remoteFunctions: true,
    },
  },
};

export default config;