本地模块
使用 ngrok 设置隧道的本地模块
本示例中:
-
modules/ngrok/index.js在开发模式下将 ngrok 的公共 URL 添加到 Nuxt CLI。 -
pages/index.vue显示来自 ngrok 的公共 URL。 -
nuxt.config.js使用buildModules属性注册模块。
了解更多关于目录结构章节中的模块目录 。
Loading Sandbox...
Edit this page on GitHub
Updated at Tue, Apr 14, 2026