You are browsing Nuxt 2 docs. Go to Nuxt 3 docs, or learn more about Nuxt 2 Long Term Support.

Local Module

Local Module for setting up a tunnel using ngrok


In this example:

  • modules/ngrok/index.js adds a public URL from ngrok to the Nuxt CLI when in dev mode.
  • pages/index.vue shows the public URL from ngrok.
  • nuxt.config.js registers our module using the buildModules property.
Loading Sandbox...
Edit this page on GitHub Updated at Thu, Dec 18, 2025