aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js
index bb04f608..c4cdb66a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,6 +8,14 @@ const config = {
alias: {
$comp: path.resolve('src/components/index.js')
}
+ },
+ server: {
+ proxy: {
+ '/api': {
+ target: 'http://localhost:3119',
+ rewrite: (path) => path.replace(/^\/api/, '')
+ }
+ }
}
};