- Secure https for all tunnels
- Show your work to anyone
- Use the API to test web hooks
- Test your UI in cloud browsers
- Add
@nuxtjs/ngrokdependency to your project
yarn add @nuxtjs/ngrok # or npm install @nuxtjs/ngrok- Add
@nuxtjs/ngrokto thebuildModulessection ofnuxt.config.js(ormodulesif on Nuxt < 2.9>)
{
buildModules: [
'@nuxtjs/ngrok',
],
}Add authorization and more using the module options.
ngrok: {
// module options
authtoken: 'my-ngrok-authtoken'
auth: 'my-user:my-pwd',
region: 'eu',
addr: 8080,
proto: 'http',
subdomain: 'my-subdomain'
}See module options.
Run the devcommand and you will see your public URL in the Nuxt CLI which you can then share with anyone, anywhere in the world.
Simple use example:
yarn dev
or
npm run devSee Usage.
- Clone this repository
- Install dependencies using
yarn addornpm install - Start development server using
yarn devornpm run dev