mirror of
https://github.com/navidrome/navidrome.git
synced 2026-03-04 06:35:52 +00:00
You'll need to set `DevActivityPanel` (or `ND_DEVACTIVITYPANEL`) to `true` to re-enable it
31 lines
701 B
JavaScript
31 lines
701 B
JavaScript
// These defaults are only used in development mode. When bundled in the app,
|
|
// the __APP_CONFIG__ object is dynamically filled by the ServeIndex function,
|
|
// in the /server/app/serve_index.go
|
|
const defaultConfig = {
|
|
version: 'dev',
|
|
firstTime: false,
|
|
baseURL: '',
|
|
loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music',
|
|
enableTranscodingConfig: true,
|
|
enableDownloads: true,
|
|
welcomeMessage: '',
|
|
gaTrackingId: '',
|
|
devActivityPanel: true,
|
|
devFastAccessCoverArt: false,
|
|
}
|
|
|
|
let config
|
|
|
|
try {
|
|
const appConfig = JSON.parse(window.__APP_CONFIG__)
|
|
|
|
config = {
|
|
...defaultConfig,
|
|
...appConfig,
|
|
}
|
|
} catch (e) {
|
|
config = defaultConfig
|
|
}
|
|
|
|
export default config
|