-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
41 lines (37 loc) · 1.03 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
import adapter from '@sveltejs/adapter-netlify';
import preprocess from 'svelte-preprocess';
import path from 'path';
import { fileURLToPath } from 'url';
import { mdsvex } from 'mdsvex';
const dirname = path.resolve(fileURLToPath(import.meta.url), '../');
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte', '.md'],
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
}),
mdsvex({
extensions: ['.md'],
layout: {
blog_layout: path.join(dirname, 'src/routes/(rgb)/blog/layout.svelte')
}
})
],
kit: {
/**
* edge: we use edge functions
* split: split every route into its own function, which we do not want
* we want one function for all routes to keep the function warm -> higher chance no coldstart
* @link https://kit.svelte.dev/docs/adapter-netlify
* @link https://www.netlify.com/pricing/
*/
adapter: adapter({
edge: true,
split: false
})
}
};
export default config;