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 adapter from '@sveltejs/adapter-auto'
import adapter from '@sveltejs/adapter-vercel'
import { fileURLToPath } from 'url'
import { dirname } from 'path'
@@ -17,7 +17,9 @@ const config = {
}),
kit: {
adapter: adapter(),
adapter: adapter({
edge: true
}),
alias: {
$components: 'src/components',
$animations: 'src/animations',