@vercel/microfrontends
Version:
Defines configuration and utilities for microfrontends development
25 lines (21 loc) • 755 B
TypeScript
import { a as ApplicationId } from './types-e7523e61.js';
interface HostConfig {
protocol?: 'http' | 'https';
host: string;
port?: number;
}
type LocalHostConfig = Omit<HostConfig, 'host'> & {
host?: string;
};
interface ApplicationOverrideConfig {
environment?: HostConfig;
}
/**
* Used to override the configuration for the application zone at runtime.
* The configuration is used by the `vercel-micro-frontends-overrides` cookie set by the Vercel Toolbar.
* The overrides config has the same shape as the `Config` type.
*/
interface OverridesConfig {
applications: Record<ApplicationId, ApplicationOverrideConfig>;
}
export { ApplicationOverrideConfig as A, HostConfig as H, LocalHostConfig as L, OverridesConfig as O };