Skip to content

Commit

Permalink
fix(netlify): shim process.env in edge middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed May 6, 2024
1 parent f14f4d7 commit f6d8c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/netlify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ export default function netlifyIntegration(
format: 'esm',
bundle: true,
minify: false,
banner: {
// Import Deno polyfill for `process.env` at the top of the file
js: 'import process from "node:process";',
},
});
}

Expand Down

0 comments on commit f6d8c78

Please sign in to comment.