feat: Use netlify adapter with edge functions (#517)

* Test netlify edge functions

* Update gitignore
This commit is contained in:
Lachlan Collins
2023-12-18 15:07:12 +11:00
committed by GitHub
parent 94803b4cae
commit 2054e0b26f
4 changed files with 14 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import path from 'node:path';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-netlify';
import hljs from 'highlight.js';
import { mdsvex, escapeSvelte } from 'mdsvex';
import rehypeSlug from 'rehype-slug';
@@ -30,7 +30,7 @@ const config = {
],
extensions: extensions,
kit: {
adapter: adapter(),
adapter: adapter({ edge: true }),
alias: {
$components: path.resolve('./src/lib/components'),
$layout: path.resolve('./src/lib/components/layout'),