@kraveir0/webapi-proxy-interceptor
Version:
Drop-in replacement for PCF WebAPI that automatically routes calls to your local development proxy.
24 lines • 565 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_CONFIG = void 0;
exports.mergeConfig = mergeConfig;
/**
* Default configuration for the proxy interceptor
*/
exports.DEFAULT_CONFIG = {
proxyUrl: "http://localhost:3000",
debug: false,
enableInProduction: false,
customHeaders: {},
timeout: 30000,
};
/**
* Merges user configuration with defaults
*/
function mergeConfig(userConfig) {
return {
...exports.DEFAULT_CONFIG,
...userConfig,
};
}
//# sourceMappingURL=config.js.map
;