Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 17, 2024
1 parent 08909f9 commit cdfa9e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/netlify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export default function netlifyIntegration(
ip:
typeof req.headers['x-nf-client-connection-ip'] === 'string'
? req.headers['x-nf-client-connection-ip']
: req.socket.remoteAddress ?? '127.0.0.1',
: (req.socket.remoteAddress ?? '127.0.0.1'),
server: {
region: 'local-dev',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const hostOptions = (host: Options['host']): string => {
};

export default function standalone(app: NodeApp, options: Options) {
const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080;
const port = process.env.PORT ? Number(process.env.PORT) : (options.port ?? 8080);
const host = process.env.HOST ?? hostOptions(options.host);
const handler = createStandaloneHandler(app, options);
const server = createServer(handler, host, port);
Expand Down

0 comments on commit cdfa9e2

Please sign in to comment.