0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-22 12:27:29 +01:00
svelte/sites/svelte-5-preview/svelte.config.js
Rich Harris bdc45fdf7f
breaking: rename legacy.componentApi to compatibility.componentApi (#12370)
* breaking: rename `legacy.componentApi` to `compatibility.legacyComponent`

closes #12112

* fix

* rename to compatibility.componentApi

* update changeset

* tidy up

* default to 5

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2024-07-09 18:43:57 -04:00

27 lines
421 B
JavaScript

import adapter from '@sveltejs/adapter-vercel';
/** @type {import('@sveltejs/kit').Config} */
export default {
compilerOptions: {
compatibility: {
// site-kit manually instantiates components inside an action
componentApi: 4
}
},
kit: {
adapter: adapter({
runtime: 'nodejs18.x'
}),
prerender: {
handleMissingId(details) {
// do nothing
}
}
},
vitePlugin: {
inspector: false
}
};