Files
k3s/tatort/svelte.config.js
2025-02-25 15:44:04 +01:00

23 lines
768 B
JavaScript

import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// 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()
},
preprocess: vitePreprocess(),
onwarn: (warning, defaultHandler) => {
// don't warn on <marquee> elements, cos they're cool
if (warning.code.startsWith('a11y-')) return;
// handle all other warnings normally
defaultHandler(warning);
}
};
export default config;