Skip to content

Commit 779b17a

Browse files
authored
refactor: remove redundant proxy logger initialization (#110)
1 parent 5a93b50 commit 779b17a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

src/server.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,30 +1154,6 @@ class Server<
11541154
options.port = Number(options.port);
11551155
}
11561156

1157-
/**
1158-
* Assume a proxy configuration specified as:
1159-
* proxy: {
1160-
* 'context': { options }
1161-
* }
1162-
* OR
1163-
* proxy: {
1164-
* 'context': 'target'
1165-
* }
1166-
*/
1167-
if (typeof options.proxy !== 'undefined') {
1168-
options.proxy = options.proxy.map((item) => {
1169-
if (typeof item === 'function') {
1170-
return item;
1171-
}
1172-
1173-
if (typeof item.logger === 'undefined') {
1174-
item.logger = this.logger as EXPECTED_ANY;
1175-
}
1176-
1177-
return item;
1178-
});
1179-
}
1180-
11811157
if (typeof options.setupExitSignals === 'undefined') {
11821158
options.setupExitSignals = true;
11831159
}

0 commit comments

Comments
 (0)