Added adapter-cloudflare

This commit is contained in:
J-onasJones 2024-06-07 00:53:24 +02:00
parent 68f6de3e11
commit 657d8f1ca8
5 changed files with 1438 additions and 5 deletions

View file

@ -1,7 +1,24 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import adapter from '@sveltejs/adapter-cloudflare';
export default {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/*'],
exclude: ['<all>']
},
platformProxy: {
configPath: 'wrangler.toml',
environment: undefined,
experimentalJsonConfig: false,
persist: false
}
})
}
}