AdminUiConfig
AdminUiConfig
This interface describes JSON config file (vendure-ui-config.json) used by the Admin UI. The values are loaded at run-time by the Admin UI app, and allow core configuration to be managed without the need to re-build the application.
Signature
interface AdminUiConfig {
apiHost: string | 'auto';
apiPort: number | 'auto';
adminApiPath: string;
tokenMethod: 'cookie' | 'bearer';
authTokenHeaderKey: string;
defaultLanguage: LanguageCode;
defaultLocale?: string;
availableLanguages: LanguageCode[];
loginUrl?: string;
brand?: string;
hideVendureBranding?: boolean;
hideVersion?: boolean;
loginImageUrl?: string;
cancellationReasons?: string[];
}
Members
apiHost
string | 'auto'
'http://localhost'
window.location.hostname
).
apiPort
number | 'auto'
3000
window.location.port
).
adminApiPath
string
'admin-api'
tokenMethod
'cookie' | 'bearer'
'cookie'
tokenMethod
config
option.
authTokenHeaderKey
string
'vendure-auth-token'
authOptions.authTokenHeaderKey
config
option.
defaultLanguage
availableLanguages
property.
defaultLocale
string
The default locale for the Admin UI. The locale affects the formatting of currencies & dates.
If not set, the browser default locale will be used.
availableLanguages
LanguageCode[]
loginUrl
string
brand
string
hideVendureBranding
boolean
false
hideVersion
boolean
false
loginImageUrl
string
cancellationReasons
string[]
['order.cancel-reason-customer-request', 'order.cancel-reason-not-available']