mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 12:57:46 +00:00
There were recently a few breaking changes introduced into SvelteKit. This PR clones that latest changes from a demo SvelteKit application, while retaining support for Vercel Analytics. Deployed latest to https://sveltekit-template.vercel.app/ and confirmed analytics are sending.
16 lines
285 B
JavaScript
16 lines
285 B
JavaScript
import adapter from '@sveltejs/adapter-auto';
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
kit: {
|
|
adapter: adapter(),
|
|
|
|
// Override http methods in the Todo forms
|
|
methodOverride: {
|
|
allowed: ['PATCH', 'DELETE']
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|