-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
34 lines (32 loc) · 797 Bytes
/
Copy pathsvelte.config.js
File metadata and controls
34 lines (32 loc) · 797 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
import adapter from '@sveltejs/adapter-vercel';
import { mdsvex } from 'mdsvex';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
mdsvex({
extensions: ['.md']
// layout: {
// blog: 'src/routes/blog/[blog]/+page.svelte'
// }
})
],
extensions: ['.svelte', '.md'],
kit: {
adapter: adapter()
},
onwarn: (warning, handler) => {
// Suppress non-critical warnings
if (
warning.code === 'a11y-click-events-have-key-events' ||
warning.code === 'a11y-no-static-element-interactions' ||
warning.code === 'css-unused-selector' ||
warning.code === 'self_closing_tag' ||
warning.code === 'event_directive_deprecated' ||
warning.code === 'state_referenced_locally'
) {
return;
}
handler(warning);
}
};
export default config;