We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5602c47 commit a9491d3Copy full SHA for a9491d3
packages/job-worker/src/blueprints/cache.ts
@@ -54,7 +54,12 @@ export async function parseBlueprintDocument(
54
let manifest: SomeBlueprintManifest
55
try {
56
const blueprintPath = `db:///blueprint/${blueprint.name || blueprint._id}-bundle.js`
57
- const context = vm.createContext({}, {})
+ const context = vm.createContext(
58
+ {
59
+ fetch,
60
+ },
61
+ {}
62
+ )
63
const script = new vm.Script(
64
`__run_result = ${blueprint.code}
65
__run_result || blueprint`,
0 commit comments