import adapter from '@sveltejs/adapter-netlify'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; // you don't need to do this if you're using generateSW strategy in your app import { generateSW } from './pwa.mjs'; /** @type {import('@sveltejs/kit').Config} */ const config = { // Consult https://kit.svelte.dev/docs/integrations#preprocessors // for more information about preprocessors preprocess: vitePreprocess(), kit: { adapter: adapter({ // if true, will create a Netlify Edge Function rather // than using standard Node-based functions edge: false, // if true, will split your app into multiple functions // instead of creating a single one for the entire app. // if `edge` is true, this option cannot be used split: false }), serviceWorker: { register: true }, files: { // you don't need to do this if you're using generateSW strategy in your app serviceWorker: generateSW ? undefined : 'src/prompt-sw.ts' } } }; export default config;