UNPKG

http-proxy-middleware

Version:

The one-liner node.js proxy middleware for connect, express, next.js and more

10 lines (9 loc) 315 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyConfig = verifyConfig; const errors_1 = require("./errors"); function verifyConfig(options) { if (!options.target && !options.router) { throw new Error(errors_1.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING); } }