Skip to content

Commit

Permalink
perf: ⚡ Enabled netlify edge functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Auxtal authored Aug 22, 2023
1 parent d6276b2 commit 2307ffa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
command = "npm run build"
publish = "build"
4 changes: 3 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import adapter from "@sveltejs/adapter-netlify";
const config = {
extensions: [".svelte", ...mdsvexConfig.extensions],
kit: {
adapter: adapter()
adapter: adapter({
edge: true
})
},
preprocess: [sveltePreprocess(), mdsvex(mdsvexConfig)]
};
Expand Down

0 comments on commit 2307ffa

Please sign in to comment.