Skip to content

Commit

Permalink
fix: global env
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Jan 26, 2022
1 parent 7e5a499 commit 4908b38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-parents-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@presta/adapter-cloudflare-workers': patch
---

Add PRESTA_ENV back for now
3 changes: 3 additions & 0 deletions packages/adapter-cloudflare-workers/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ addEventListener("fetch", adapter(${JSON.stringify(props)}, routes));`,
allowOverwrite: true, // it will be overwritten
format: 'cjs',
bundle: true,
define: {
PRESTA_ENV: JSON.stringify(process.env.PRESTA_ENV),
},
})
}

Expand Down

0 comments on commit 4908b38

Please sign in to comment.