-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsvelte.config.js
47 lines (42 loc) · 1.27 KB
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// import adapter from '@sveltejs/adapter-auto';
// import adapter from '@sveltejs/adapter-static';
// import adapterGhpages from "svelte-adapter-ghpages";
// import adapterNetlify from '@sveltejs/adapter-netlify';
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(),
kit: {
// adapter: adapterGhpages({
// pages: 'build',
// assets: 'build',
// fallback: '404.html',
// precompress: false,
// strict: true
// }),
// adapter: adapterNetlify({
// // Using edge is faster, but does not support node stuff
// // edge: true,
// }),
adapter: adapter({
routes: {
include: ['/*'],
exclude: ['<all>']
}
}),
prerender: {
crawl: true,
entries: ['/'],
// Replace this when deploying
// origin: 'https://wonenatthepark.nl',
origin: 'http://localhost:4174',
},
// If you are not using a .nojekyll file, change your appDir to something not starting with an underscore.
// For example, instead of '_app', use 'app_', 'internal', etc.
appDir: 'app',
},
};
export default config;