2025-07-29 13:52:36 +08:00
|
|
|
import adapter from '@sveltejs/adapter-node';
|
2025-07-29 13:39:42 +08:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
// Consult https://svelte.dev/docs/kit/integrations
|
|
|
|
// for more information about preprocessors
|
|
|
|
preprocess: vitePreprocess(),
|
|
|
|
|
|
|
|
kit: {
|
2025-07-29 13:52:36 +08:00
|
|
|
// 使用 Node.js 适配器,适合 Docker 部署
|
|
|
|
adapter: adapter({
|
|
|
|
out: 'build'
|
|
|
|
}),
|
2025-07-29 13:46:43 +08:00
|
|
|
alias: {
|
2025-07-31 18:31:26 +08:00
|
|
|
'@/*': './src/*',
|
|
|
|
'ui/*': './src/lib/components/ui/*'
|
2025-07-29 13:46:43 +08:00
|
|
|
}
|
2025-07-29 13:39:42 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|