preact dev server proxies to rust dev server
This commit is contained in:
parent
35a912bd7a
commit
a0436f8c87
|
@ -26,5 +26,17 @@ export default {
|
|||
"src",
|
||||
"index"
|
||||
);
|
||||
|
||||
config.devServer.proxy = [{
|
||||
// proxy requests matching a pattern:
|
||||
path: '/api/**',
|
||||
|
||||
// where to proxy to:
|
||||
target: 'http://localhost:8000',
|
||||
|
||||
// optionally change Origin: and Host: headers to match target:
|
||||
changeOrigin: true,
|
||||
changeHost: true,
|
||||
}];
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue