UNPKG

vite-plugin-ngrok

Version:

A Vite plugin for seamless integration with ngrok, allowing you to easily share your local development server with anyone, anywhere.

15 lines (12 loc) 569 B
import * as vite from 'vite'; import { Config } from '@ngrok/ngrok'; /** * Vite ngrok plugin allowing you to expose your local server to the internet. */ declare const ngrok: (options?: Config | string) => { name: string; apply: (this: void, _config: vite.UserConfig, { command, mode }: vite.ConfigEnv) => boolean; configResolved(this: vite.MinimalPluginContextWithoutEnvironment, config: vite.ResolvedConfig): Promise<void>; configureServer(this: vite.MinimalPluginContextWithoutEnvironment, server: vite.ViteDevServer): void; }; export { ngrok };