diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 16:43:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 16:43:48 -0700 |
| commit | 301c23629da19e2875f3821ee62b26696a5ae8cc (patch) | |
| tree | 1cf9e98291fce2635368ad9f04bfd99e5f206a6e /vite.config.js | |
| parent | 6f32c75a0d194babdb4efc0199d5239677947463 (diff) | |
| download | coinos-ui-301c23629da19e2875f3821ee62b26696a5ae8cc.tar.gz coinos-ui-301c23629da19e2875f3821ee62b26696a5ae8cc.zip | |
upload endpoint
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 8 |
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/, '') + } + } } }; |
