Skip to content

Commit

Permalink
fix: run config export with --allow-env (netlify/edge-bundler#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Oct 26, 2022
1 parent bba0604 commit 9a57e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/edge-bundler/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const getFunctionConfig = async (func: EdgeFunction, importMap: ImportMap
const { exitCode, stderr, stdout } = await deno.run(
[
'run',
'--allow-env',
'--allow-net',
'--allow-read',
`--allow-write=${collector.path}`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { greet } from 'alias:helper'

// Accessing `Deno.env` in the global scope
if (Deno.env.get('FOO')) {
// no-op
}

export default async () => {
const greeting = greet('user function 1')

Expand Down

0 comments on commit 9a57e98

Please sign in to comment.