Skip to content

Commit b3f0be3

Browse files
committed
chore: warning when proxy property is undefined
1 parent 1841c58 commit b3f0be3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,9 @@ class Server {
832832
if (proxyConfig.target) {
833833
return createProxyMiddleware(context, proxyConfig);
834834
}
835+
this.logger.warn(
836+
`The "target" value specified in the "proxy" property ${context} is not defined and will be skipped.`
837+
);
835838
};
836839
/**
837840
* Assume a proxy configuration specified as:

0 commit comments

Comments
 (0)