Skip to content

Commit

Permalink
use new proxy syntax in webpack.dev.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Feb 19, 2024
1 parent 7231c90 commit 46f672f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ module.exports = merge(common, {
devtool: "inline-source-map",
devServer: {
server: {
type: 'https'
type: "https",
},
proxy: {
"/janus": {
proxy: [
{
context: ["/janus"],
target: "http://127.0.0.1:8188/janus",
ws: true
}
},
ws: true,
},
],
static: {
directory: path.resolve(__dirname, "examples")
}
}
directory: path.resolve(__dirname, "examples"),
},
},
});

0 comments on commit 46f672f

Please sign in to comment.