-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
35 lines (32 loc) · 858 Bytes
/
svelte.config.js
File metadata and controls
35 lines (32 loc) · 858 Bytes
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
import alchemy from 'alchemy/cloudflare/sveltekit';
import adapter from '@sveltejs/adapter-cloudflare';
import { mdsvex } from 'mdsvex';
import remarkGfm from 'remark-gfm';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { readFileSync } from 'fs';
const dev = process.env.NODE_ENV === 'development';
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'));
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.svelte', '.svx', '.svelte.md'],
preprocess: [
vitePreprocess(),
mdsvex({
extensions: ['.md', '.svx', '.svelte.md'],
remarkPlugins: [remarkGfm],
}),
],
kit: {
adapter: dev ? alchemy() : adapter(),
version: { name: pkg.version },
experimental: {
remoteFunctions: true
}
},
compilerOptions: {
experimental: {
async: true
}
}
};
export default config;