Skip to content

Commit

Permalink
Quick fix to deal with new local server setting format (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
barankyle authored Dec 18, 2024
1 parent 7de00f3 commit c43bfe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server-core/src/createApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ export const createFeathersKoaApp = async (
// hard-code http as the protocol, so manually mashing host + port together if in local.
app.set(
'host',
appConfig.server.local ? appConfig.server.hostname + ':' + appConfig.server.port : appConfig.server.hostname
(appConfig.server.local as any) === '1' || appConfig.server.local === true
? appConfig.server.hostname + ':' + appConfig.server.port
: appConfig.server.hostname
)
app.set('port', appConfig.server.port)

Expand Down

0 comments on commit c43bfe4

Please sign in to comment.