-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
58 lines (48 loc) · 1.17 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
48
49
50
51
52
53
54
55
56
57
58
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
// static
import adapterStatic from "@sveltejs/adapter-static";
const adapterStaticOrWasmer = adapterStatic({
pages: "build",
assets: "build",
fallback: undefined,
precompress: false,
strict: false,
});
// Node
import adapterNode from "@sveltejs/adapter-node";
const adapterNodeJS = adapterNode({
pages: "build",
assets: "build",
fallback: undefined,
precompress: false,
strict: false,
});
import adapterNetlify from "@sveltejs/adapter-netlify";
const adapterNetlifyDisableEdge = adapterNetlify({
edge: false,
split: false,
});
const adapterNetlifyEdge = adapterNetlify({
edge: true,
});
import adapterCloudflarePage from "@sveltejs/adapter-cloudflare";
const cloudflarePageAdapter = adapterCloudflarePage({
routes: {
include: ["/*"],
exclude: ["<all>"],
},
});
import adapterCloudflareWorker from "@sveltejs/adapter-cloudflare-workers";
const cloudflareWorkerAdapter = adapterCloudflareWorker({
routes: {
include: ["/*"],
exclude: ["<all>"],
},
});
const config = {
kit: {
adapter: adapterNetlifyEdge,
},
preprocess: vitePreprocess(),
};
export default config;