@vercel/microfrontends
Version:
Defines configuration and utilities for microfrontends development
17 lines (15 loc) • 554 B
TypeScript
interface MicrofrontendsPort {
name: string;
version: string;
port: number;
/** Whether the port was overridden via MFE_PORT env var */
overridden?: boolean;
}
/**
* Environment variable to override the port for local development.
* Useful when running multiple worktrees simultaneously.
* Note: Only works when a single application is running locally.
*/
declare const MFE_APP_PORT_ENV = "MFE_APP_PORT";
declare function mfePort(packageDir: string): MicrofrontendsPort;
export { MFE_APP_PORT_ENV, MicrofrontendsPort, mfePort };