Skip to content

Instantly share code, notes, and snippets.

@ilaborie
Created July 26, 2016 05:31
Show Gist options
  • Save ilaborie/1e731767f7ce7b6b80b88e9e872f009a to your computer and use it in GitHub Desktop.
Save ilaborie/1e731767f7ce7b6b80b88e9e872f009a to your computer and use it in GitHub Desktop.
BS config with proxy
const proxy = require('http-proxy-middleware');
module.exports = {
port: 8030,
open: false,
server: {
middleware: proxy('/api', { target: 'http://localhost:8000/' })
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment