feat: Add browser documentation
This commit is contained in:
@@ -9,6 +9,7 @@ export interface LocalApiSettings {
|
||||
port: number;
|
||||
exposeOnLan: boolean;
|
||||
scalarEnabled: boolean;
|
||||
docusaurusEnabled: boolean;
|
||||
allowedSignalingServers: string[];
|
||||
}
|
||||
|
||||
@@ -33,6 +34,7 @@ const DEFAULT_LOCAL_API_SETTINGS: LocalApiSettings = {
|
||||
port: 17878,
|
||||
exposeOnLan: false,
|
||||
scalarEnabled: false,
|
||||
docusaurusEnabled: false,
|
||||
allowedSignalingServers: []
|
||||
};
|
||||
|
||||
@@ -129,6 +131,7 @@ function normalizeLocalApiSettings(value: unknown): LocalApiSettings {
|
||||
port: normalizePort(source.port, DEFAULT_LOCAL_API_SETTINGS.port),
|
||||
exposeOnLan: typeof source.exposeOnLan === 'boolean' ? source.exposeOnLan : DEFAULT_LOCAL_API_SETTINGS.exposeOnLan,
|
||||
scalarEnabled: typeof source.scalarEnabled === 'boolean' ? source.scalarEnabled : DEFAULT_LOCAL_API_SETTINGS.scalarEnabled,
|
||||
docusaurusEnabled: typeof source.docusaurusEnabled === 'boolean' ? source.docusaurusEnabled : DEFAULT_LOCAL_API_SETTINGS.docusaurusEnabled,
|
||||
allowedSignalingServers: normalizeAllowedSignalingServers(source.allowedSignalingServers)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user