File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,15 @@ import { onSocketConnection } from './socket/handler'
77import { KUN_SOCKET_IO_ROUTE } from '~/config/app'
88
99const dev = process . env . NODE_ENV !== 'production'
10- const hostname = process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_PROD_HOST
10+ const hostname = dev
11+ ? process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_DEV_HOST
12+ : process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_PROD_HOST
1113const port =
12- Number ( process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_PROD_PORT ) || 2333
14+ Number (
15+ dev
16+ ? process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_DEV_PORT
17+ : process . env . NEXT_PUBLIC_KUN_PATCH_APP_ADDRESS_PROD_PORT
18+ ) || 2333
1319
1420const app = next ( { dev, hostname, port, turbopack : true } )
1521const handle = app . getRequestHandler ( )
You can’t perform that action at this time.
0 commit comments