@nuxtus/nuxt-localtunnel

A Nuxt module for automatically running localtunnnel to externally expose your development instance of Nuxt to the outside world.
5,698 22
Install
npm install @nuxtus/nuxt-localtunnel
Latest Version:1.0.1
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: craigharman

Nuxt Localtunnel

A Nuxt module for automatically running localtunnnel to externally expose your development instance of Nuxt to the outside world.

Allows full configuration of all localtunnel configuration options including https

Installation

npm install @nuxtus/nuxt-localtunnel

Edit your nuxt.config.ts and add the @nuxtus/nuxt-localtunnel module:

modules: [
  '@nuxtus/nuxt-localtunnel'
],
localtunnel: {} // Localtunnel config options go here (see below)

Then start Nuxt as normal npm run dev, you will be given an extra (external URL to reach your development site).

Config

All localtunnel configuration options are accepted via the localtunnel property of the nuxt.config.ts file:

  • port (number) The local port number to expose through localtunnel.
  • subdomain (string) Request a specific subdomain on the proxy server. Note You may not actually receive this name depending on availability.
  • host (string) URL for the upstream proxy server. Defaults to https://localtunnel.me.
  • local_host (string) Proxy to this hostname instead of localhost. This will also cause the Host header to be re-written to this value in proxied requests.
  • local_https (boolean) Enable tunneling to local HTTPS server.
  • local_cert (string) Path to certificate PEM file for local HTTPS server.
  • local_key (string) Path to certificate key file for local HTTPS server.
  • local_ca (string) Path to certificate authority file for self-signed certificates.
  • allow_invalid_cert (boolean) Disable certificate checks for your local HTTPS server (ignore cert/key/ca options).

Refer to tls.createSecureContext for details on the certificate options.

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

Related Packages

@nuxtus/nuxt-module

Nuxt module for automation between Nuxt and Directus.

1,322 1
@nuxtus/nuxtus

Directus/Nuxt boilerplate with Tailwind CSS.

1,882 90
@nuxtus/generator

Package responsible for generating a Nuxt page from Directus collection.

1,562 2

Version History

Version Released Vue License
1.0.1 ^3.0 MIT
1.0.0 ^3.0 MIT