From 4b4906bd0dea0726e5a10acca10100aea4a4ef88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 18 Sep 2022 12:15:35 +0200 Subject: [PATCH] Use Vercel Edge Functions --- svelte.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index a24b9fc..0c9a3f4 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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',