Skip to content

Commit bcd6839

Browse files
author
jakub.pawlowski
committed
fix compilation error
1 parent 675fa7d commit bcd6839

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/registry/domain/options-sanitiser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function optionsSanitiser(input: Input): Config {
6868
options.customHeadersToSkipOnWeakVersion || []
6969
).map(s => s.toLowerCase());
7070

71-
options.port = options.port || process.env['PORT'];
71+
options.port = options.port || process.env['PORT'] || 3000;
7272
options.timeout = options.timeout || 1000 * 60 * 2;
7373
options.keepAliveTimeout =
7474
options.keepAliveTimeout || DEFAULT_NODE_KEEPALIVE_MS;

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export interface Config {
132132
path: string;
133133
plugins: Record<string, (...args: unknown[]) => void>;
134134
pollingInterval: number;
135-
port: number;
135+
port: number | string;
136136
postRequestPayloadSize?: number;
137137
prefix: string;
138138
publishAuth?: {

0 commit comments

Comments
 (0)