nodes/packages/ui/svelte.config.js

24 lines
773 B
JavaScript
Raw Normal View History

2024-04-30 14:25:26 +02:00
import adapter from '@sveltejs/adapter-static';
2024-03-06 14:01:07 +01:00
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
2024-04-30 14:25:26 +02:00
const { BASE_URL = "" } = process.env;
2024-03-06 14:01:07 +01:00
/** @type {import('@sveltejs/kit').Config} */
const config = {
2024-04-30 14:25:26 +02:00
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
2024-03-06 14:01:07 +01:00
2024-04-30 14:25:26 +02:00
kit: {
paths: {
base: BASE_URL,
},
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
2024-03-06 14:01:07 +01:00
};
export default config;