Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

webpack setup proxy manual

proxy: [{
  "/api": "http://localhost:3000",
},{
  context: ['/alpha', '/bravo', '/charlie', '/zulu'],
  target: 'http://localhost:8080',
  rewrite: function (path, req) { return path.replace(//(.*?)/g, '') }
}]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #webpack #setup #proxy #manual
ADD COMMENT
Topic
Name
1+2 =