Installation

Add @nuxtjs/ngrok dependency using yarn or npm to your project

yarn add @nuxtjs/ngrok
npm install @nuxtjs/ngrok

Add @nuxtjs/ngrok to the buildModules section of your nuxt.config.js

nuxt.config.js
 buildModules: [
    '@nuxtjs/ngrok',
  ]