Skip to content

Commit 4ab81d7

Browse files
committed
Setting invoked-by env variable in run function process for usage telemetry
1 parent 531895f commit 4ab81d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/methods/run-function.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ export async function runFunction(
5656
'--path', functionName
5757
], {
5858
cwd: appRootDir,
59-
stdio: ['pipe', 'pipe', 'pipe']
59+
stdio: ['pipe', 'pipe', 'pipe'],
60+
env: {
61+
...process.env,
62+
SHOPIFY_INVOKED_BY: 'shopify-function-test-helpers'
63+
}
6064
});
6165

6266
let stdout = '';

0 commit comments

Comments
 (0)