import preprocess from 'svelte-preprocess'; import adapter from '@sveltejs/adapter-cloudflare'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors preprocess: [ vitePreprocess(), preprocess({ scss: { prependData: '@use "src/variables.scss" as *;' }, preserve: ['ld+json'] }) ], onwarn: (warning, handler) => { if (warning.code == 'css-unused-selector') { return; } handler(warning); }, kit: { adapter: adapter({ routes: { include: [/*'/read/*', '/author/*', '/tag/*', */ '/*'], exclude: [''] } }), prerender: { entries: ['*', '/community-survey-23-10', '/stub-landing'] } } }; export default config;