Skip to content

Commit

Permalink
[edge] publish process.env types for edge functions (vercel#9083)
Browse files Browse the repository at this point in the history
  • Loading branch information
EndangeredMassa authored Dec 15, 2022
1 parent 61e588c commit 0cbc676
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/edge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export * from './middleware-helpers';
export type { Geo } from './edge-headers';
export * from './edge-headers';
export * from './response';

import './published-types.d.ts';
8 changes: 8 additions & 0 deletions packages/edge/src/published-types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable no-var */

declare global {
// must be `var` to work
var process: {
env: Record<string, string>;
};
}

0 comments on commit 0cbc676

Please sign in to comment.