Replies: 1 comment
-
| You can try to provide use the  module.exports = {
  //...
  devServer: {
    devMiddleware: {
      index: false, // specify to enable root proxying
    },
    proxy: [
      {
        context: (pathname, req) => true,
        target: 'http://localhost:1234',
      },
    ],
  },
};
// source: https://webpack.js.org/configuration/dev-server/Note: | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using this as part of webpack dev server. My old 'bypass' code looked like this:
Meaning:
I can't figure out how to handle this using the
routeroption. This is what I'm attempting...I see the
[BUNDLE]log statement but the browser never loads the bundle from the dev server. So I'm not sure how I should indicate "don't proxy, instead serve this asset."Beta Was this translation helpful? Give feedback.
All reactions