Nuxt 3 beta is out! Discover more about it on v3.nuxtjs.org

Discover
Showcases
Showcases

Selection of websites built with Nuxt

Case studies
Case studies

How companies use Nuxt

Testimonials
Testimonials

What they think about us

Learn
Docs
Docs

Create fast websites easily

Examples
Examples

Understand everything in Nuxt

Tutorials
Tutorials

Learn with concrete cases

Master courses
Master courses

Learn more with experts

Explore
Deployments
Deployments

How to Deploy Nuxt

Modules
Modules

Extend the power of Nuxt

Themes
Themes

Get started with themes

Video Courses
Video Courses

Learn step by step

Community
Announcements
Announcements

Latest news about Nuxt

Teams
Teams

They are Nuxt

Releases
Releases

All the code we have released

Sponsors
Sponsors

They trust us

Partners
English
Français
日本語
  • Routing
    • Hello World
    • Active Link Classes
    • Dynamic Pages
    • Nested Pages
  • Data Fetching
  • Assets Management
  • Transitions
  • Seo
  • Loading
  • Miscellaneous
  • Middlewares
  • Plugins
  • Modules
    • Local Module
    • Axios usage
Master courses
Master courses

Learn more with experts

English
Français
日本語
  • Routing
    • Hello World
    • Active Link Classes
    • Dynamic Pages
    • Nested Pages
  • Data Fetching
  • Assets Management
  • Transitions
  • Seo
  • Loading
  • Miscellaneous
  • Middlewares
  • Plugins
  • Modules
    • Local Module
    • Axios usage
Master courses
Master courses

Learn more with experts

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.
Learn more in the Directory Structure book in the modules chapter.
Loading Sandbox...
Edit this page on GitHub Updated at Tue, Apr 5, 2022
Nazaré da Piedade Nazaré da Piedade Mosaab Emam Mosaab Emam Sylvain Marroufin Sylvain Marroufin Iljs Путлер Капут Iljs Путлер Капут Daniel Roe Daniel Roe Heitor Ramon Ribeiro Heitor Ramon Ribeiro Nero Nero Sébastien Chopin Sébastien Chopin Clément Ollivier Clément Ollivier Yoon Han Yoon Han Ikko Ashimine Ikko Ashimine FamCodings FamCodings Ayouli Ayouli F. Hinkelmann F. Hinkelmann felipesuri felipesuri Christophe Carvalho Vilas-Boas Christophe Carvalho Vilas-Boas Leoš Literák Leoš Literák Trizotti Trizotti Marcello Bachechi Marcello Bachechi Rodolphe Rodolphe Thomas Underwood Thomas Underwood Shek Evgeniy Shek Evgeniy Lukasz Formela Lukasz Formela Hugo Torzuoli Hugo Torzuoli Kareem Dabbeet Kareem Dabbeet tramplay tramplay verebelyicsaba verebelyicsaba Adam Adam Nate Butler Nate Butler Sandra Rodgers Sandra Rodgers Arpit Patidar Arpit Patidar Matthew Kuehn Matthew Kuehn Steven DUBOIS Steven DUBOIS Travis Lindsey Travis Lindsey syagawa syagawa Maxime Maxime かる かる Al Power Al Power Florent Delerue Florent Delerue quanghm quanghm José Manuel Casani Guerra José Manuel Casani Guerra Unai Mengual Unai Mengual kazuya kawaguchi kazuya kawaguchi Michael Lynch Michael Lynch Tomachi Tomachi pooya parsa pooya parsa Meir Roth Meir Roth

A landscape image A landscape image

About

  • Contact us
  • Enterprise support
  • NuxtLabs company
  • Open Source Software
  • Partnerships
  • Telemetry

Ecosystem

  • Announcements
  • Contribute
  • Chat with us
  • Events
  • Sponsors
  • Teams
  • Tutorials
  • Video courses

Resources

  • Design
  • Documentation
  • Examples
  • Deployments
  • Master courses
  • Modules
  • Releases
  • Showcases
  • Themes

Newsletter

The latest news, articles, and resources, sent to your inbox monthly.