diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-08 15:19:32 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-08 15:21:01 +1000 |
| commit | 347f5127929b17671c75734af5a374ec4f39b5ae (patch) | |
| tree | bae9b7464ae06b0b18a0c9460ba1e48254d754e4 /vite.config.js | |
| parent | 4e2830b6986aef2486d12c20ffc37d4bb595ced4 (diff) | |
Revert back to using vite-proxy for avoiding CORS issues
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vite.config.js b/vite.config.js index f1e7552..ebcdcd3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,9 @@ export default defineConfig({ base: '/', plugins: [vue()], server: { + proxy: { + '/cgi-bin/data.py': 'http://localhost:8000' + }, watch: { ignored: ['**/backend', '**/public'] }, |
