2022-08-09 11:15:42 +02:00
|
|
|
import adapter from "@sveltejs/adapter-node"
|
2023-01-31 16:12:09 +01:00
|
|
|
import { vitePreprocess } from "@sveltejs/kit/vite"
|
2022-08-09 10:21:38 +02:00
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
2022-08-29 10:24:08 +02:00
|
|
|
package: {
|
|
|
|
exports: (filePath) => {
|
2022-11-13 12:35:17 +01:00
|
|
|
return !filePath.startsWith("server/")
|
2022-08-29 10:24:08 +02:00
|
|
|
},
|
|
|
|
files: (filePath) => {
|
2022-11-13 12:35:17 +01:00
|
|
|
return !filePath.startsWith("server/")
|
2022-08-29 10:24:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2023-01-31 16:12:09 +01:00
|
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
2022-08-09 10:44:30 +02:00
|
|
|
// for more information about preprocessors
|
2023-01-31 16:12:09 +01:00
|
|
|
preprocess: vitePreprocess(),
|
2022-08-09 10:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
kit: {
|
2022-08-09 11:15:42 +02:00
|
|
|
adapter: adapter({
|
|
|
|
precompress: true,
|
|
|
|
}),
|
2022-08-09 10:44:30 +02:00
|
|
|
},
|
|
|
|
}
|
2022-08-09 10:21:38 +02:00
|
|
|
|
2022-08-09 10:44:30 +02:00
|
|
|
export default config
|