Use Vercel Edge Functions
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user