chore: scaffold sveltekit cloudflare app
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import adapter from '@sveltejs/adapter-cloudflare';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
compilerOptions: {
|
||||
// Force runes mode for the project, except for libraries. Can be removed in svelte 6.
|
||||
runes: ({ filename }) => (filename.split(/[/\\]/).includes('node_modules') ? undefined : true)
|
||||
},
|
||||
vitePlugin: {
|
||||
inspector: {
|
||||
toggleKeyCombo: 'control-shift-x'
|
||||
}
|
||||
},
|
||||
kit: {
|
||||
adapter: adapter(),
|
||||
typescript: {
|
||||
config: (config) => ({
|
||||
...config,
|
||||
include: [...config.include, '../drizzle.config.ts']
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user