fix non-devserver build
This commit is contained in:
parent
5b63ee4f37
commit
a2853c4a95
|
@ -30,6 +30,7 @@ export default {
|
|||
config.resolve.alias["react"] = "preact/compat";
|
||||
config.resolve.alias["react-dom"] = "preact/compat";
|
||||
|
||||
if (config.devServer){
|
||||
config.devServer.proxy = [{
|
||||
// proxy requests matching a pattern:
|
||||
path: '/api/**',
|
||||
|
@ -42,4 +43,5 @@ export default {
|
|||
changeHost: true,
|
||||
}];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue