Created
June 2, 2023 00:22
-
-
Save ericpkatz/48b60553ee7c5fc24eef118273be6037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('./env'); | |
const ngrok = require('ngrok'); | |
const init = async()=> { | |
if(process.env.ngrok){ | |
const url = await ngrok.connect( | |
{ | |
port: process.env.PORT, authtoken: process.env.ngrok | |
} | |
); | |
console.log(url); | |
} | |
} | |
init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment