BLACK FRIDAY - Get 35% off your Mastering Nuxt license!

Local Module

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.

Learn more in the Directory Structure book in the modules chapter.

Loading CodeSandbox...