Skip to content

Commit

Permalink
fix(vercel-edge): use platform provided process shim
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 16, 2023
1 parent 56f8f4c commit 392ce64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/presets/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export const vercelEdge = defineNitroPreset({
format: "module",
},
},
unenv: {
inject: {
process: undefined,
},
},
hooks: {
"rollup:before": (nitro: Nitro) => deprecateSWR(nitro),
async compiled(nitro: Nitro) {
Expand Down

0 comments on commit 392ce64

Please sign in to comment.