Skip to content

Commit

Permalink
fix(netlify-edge): write _headers and _redirects (#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 22, 2024
1 parent 3e22047 commit 273d98d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/presets/netlify.ts
Expand Up @@ -72,6 +72,9 @@ export const netlifyEdge = defineNitroPreset({
deprecateSWR(nitro);
},
async compiled(nitro: Nitro) {
await writeHeaders(nitro);
await writeRedirects(nitro);

// https://docs.netlify.com/edge-functions/create-integration/
const manifest = {
version: 1,
Expand Down

0 comments on commit 273d98d

Please sign in to comment.