Skip to content

Commit 319d8df

Browse files
committed
fix(hub-ui): always serve 'branding.json'
1 parent b9f5c2f commit 319d8df

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/hub-ui/src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ export function createUi(options: CreateUiOptions = {}): DevframeHubUi {
6363
...(options.embedded !== false
6464
? { embedded: { entry: join(client, 'embedded.js') } }
6565
: {}),
66-
...(options.branding
67-
// Serialized once and served from memory at `<base>branding.json` by the
68-
// hub's generic `assets` seam — no build step, no files written.
69-
? { assets: { 'branding.json': () => JSON.stringify(options.branding) } }
70-
: {}),
66+
assets: { 'branding.json': () => JSON.stringify(options.branding || {}) },
7167
}
7268
}

0 commit comments

Comments
 (0)