diff --git a/packages/cli/src/server.ts b/packages/cli/src/server.ts index e0572ab215..da95c79111 100644 --- a/packages/cli/src/server.ts +++ b/packages/cli/src/server.ts @@ -348,6 +348,7 @@ export class Server extends AbstractServer { // Route all UI urls to index.html to support history-api const nonUIRoutes: Readonly = [ 'favicon.ico', + 'favicon-dev.ico', 'assets', 'static', 'types', diff --git a/packages/editor-ui/public/favicon-dev.ico b/packages/editor-ui/public/favicon-dev.ico new file mode 100644 index 0000000000..d9d2442a22 Binary files /dev/null and b/packages/editor-ui/public/favicon-dev.ico differ diff --git a/packages/editor-ui/public/static/logo/channel/dev-dark.svg b/packages/editor-ui/public/static/logo/channel/dev-dark.svg index 23c8b05711..c809d120ed 100644 --- a/packages/editor-ui/public/static/logo/channel/dev-dark.svg +++ b/packages/editor-ui/public/static/logo/channel/dev-dark.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/editor-ui/public/static/logo/channel/dev.svg b/packages/editor-ui/public/static/logo/channel/dev.svg index f8f2b2d437..157b78edae 100644 --- a/packages/editor-ui/public/static/logo/channel/dev.svg +++ b/packages/editor-ui/public/static/logo/channel/dev.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/editor-ui/src/stores/settings.store.ts b/packages/editor-ui/src/stores/settings.store.ts index 7d881b74d4..10b46b54e2 100644 --- a/packages/editor-ui/src/stores/settings.store.ts +++ b/packages/editor-ui/src/stores/settings.store.ts @@ -202,6 +202,13 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => { if (!isV1BannerDismissedPermanently && settings.value.versionCli.startsWith('1.')) { useUIStore().pushBannerToStack('V1'); } + + if (settings.value.releaseChannel === 'dev') { + const favicon = document.querySelector("link[rel~='icon']") as HTMLLinkElement; + if (favicon && favicon.href.includes('/favicon.ico')) { + favicon.href = favicon.href.replace('favicon', 'favicon-dev'); + } + } }; const setAllowedModules = (allowedModules: FrontendSettings['allowedModules']) => {