mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-06 04:21:38 +00:00
feat: Use netlify adapter with edge functions (#517)
* Test netlify edge functions * Update gitignore
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user