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. learn more
Features
- Secure https for all tunnels
- Show your work to anyone
- Use the API to test web hooks
- Test your UI in cloud browsers
Note This module is only enabled in dev mode.
- Add
@nuxtjs/ngrokdependency using yarn or npm to your project - Add
@nuxtjs/ngroktomodulessection ofnuxt.config.js
modules: [
// Simple usage
'@nuxtjs/ngrok',
// With options
['@nuxtjs/ngrok', { subdomain: 'foobar' }],
](For more information see here)
On next dev, you will something like this in terminal that can be shared with the world:
> Open http://127.0.0.1:3000
> Open https://starter.ngrok.me for external access
- Default:
http http|tcp|tls
- Default:
process.env.npm_package_name
- http basic authentication for tunnel
- reserved tunnel name
https://EXAMPLE.ngrok.io
- your authtoken from ngrok.com
- Default:
us - one of ngrok regions (
us,eu,au,ap)
~/git/project/ngrok.yml- custom path for ngrok config file
Inspired by @nuxtjs/localtunnel