Skip to content

Commit

Permalink
fix(ngrok): reference ngrok.js as a relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
eladb committed Jan 16, 2024
1 parent 6e11b8c commit 3830ccb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngrok/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const { spawn } = require("child_process");
const { dirname } = require("fs");

exports.spawn = async (cmd, args, opts) => {
const child = spawn(cmd, args, { stdio: "pipe", ...opts });
const child = spawn(cmd, args, { stdio: "pipe", cwd: __dirname, ...opts });
return new Promise((resolve, reject) => {

// route to `console.xxx` so it shows in wing console
Expand Down

0 comments on commit 3830ccb

Please sign in to comment.