Skip to content

Commit 997b691

Browse files
pStefanecCopilot
andauthored
Using a conditional spread
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6d7ee07 commit 997b691

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/config/config.server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ export const buildAppConfig = (destConfigPath?: string): AppConfig => {
248248
},
249249
}),
250250
// UI namespace for routing
251-
ui: {
252-
nameSpace: appConfig.ui?.nameSpace,
253-
},
251+
...(appConfig.ui ? { ui: { nameSpace: appConfig.ui.nameSpace } } : {}),
254252
// Auth configuration - only expose client-side settings (idle timeout, token refresh)
255253
auth: {
256254
ui: {

0 commit comments

Comments
 (0)