This module is not yet compatible with Nuxt 3
Head over to v2.nuxt.com
ngrok
ngrok exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes
@nuxtjs/ngrok
Features
- Secure https for all tunnels
- Show your work to anyone
- Use the API to test web hooks
- Test your UI in cloud browsers
Quick Setup
- Add
@nuxtjs/ngrok
dependency to your project
yarn add @nuxtjs/ngrok # or npm install @nuxtjs/ngrok
- Add
@nuxtjs/ngrok
to thebuildModules
section ofnuxt.config.js
(ormodules
if on Nuxt < 2.9>)
{ buildModules: [ '@nuxtjs/ngrok', ],}
Add Options
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.
Usage
Run the dev
command 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 devornpm run dev
See Usage.
Development
- Clone this repository
- Install dependencies using
yarn add
ornpm install
- Start development server using
yarn dev
ornpm run dev
License
Contributors 6