Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
conf.devServer.before = (app) => {
apiMocker(app, path.resolve('./mocker/index.js'), {
proxy: {
// '/repos/*': 'https://api.github.com/',
},
changeHost: true,
});
};
}