Skip to content

Commit e62ca88

Browse files
committed
Fix webpack compatibility
1 parent 2b11693 commit e62ca88

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎public/webpack.config.js‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,20 @@ module.exports = (env, args) => {
6767
allowedHosts: "all",
6868
port: 80,
6969
static: "/static/js",
70-
proxy: {
71-
"/": "http://localhost:81",
72-
"/member": "http://localhost:81",
73-
"/shop": "http://localhost:81",
74-
},
70+
proxy: [
71+
{
72+
context: ["/"],
73+
target: "http://localhost:81",
74+
},
75+
{
76+
context: ["/member"],
77+
target: "http://localhost:81",
78+
},
79+
{
80+
context: ["/shop"],
81+
target: "http://localhost:81",
82+
},
83+
],
7584
},
7685
infrastructureLogging: {
7786
level: "error",

0 commit comments

Comments
 (0)