Matrix/Webserver/svelte.config.js

21 lines
622 B
JavaScript
Raw Normal View History

2023-12-01 07:14:08 +00:00
import adapter from '@sveltejs/adapter-node';
2023-11-23 12:22:59 +00:00
import { vitePreprocess } from '@sveltejs/kit/vite';
import { config as dotEnvConfig } from 'dotenv';
dotEnvConfig({ path: '../.env' });
2023-11-23 12:22:59 +00:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
2023-12-01 07:14:08 +00:00
// adapter-node uses adapter() method here; production env will always run with node.
2023-11-23 12:22:59 +00:00
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};
export default config;