Use Vercel Edge Functions

This commit is contained in:
2022-09-18 12:15:35 +02:00
parent b66db25942
commit 4b4906bd0d

View File

@@ -1,5 +1,5 @@
import preprocess from 'svelte-preprocess' import preprocess from 'svelte-preprocess'
import adapter from '@sveltejs/adapter-auto' import adapter from '@sveltejs/adapter-vercel'
import { fileURLToPath } from 'url' import { fileURLToPath } from 'url'
import { dirname } from 'path' import { dirname } from 'path'
@@ -17,7 +17,9 @@ const config = {
}), }),
kit: { kit: {
adapter: adapter(), adapter: adapter({
edge: true
}),
alias: { alias: {
$components: 'src/components', $components: 'src/components',
$animations: 'src/animations', $animations: 'src/animations',