diff options
author | vnugent <public@vaughnnugent.com> | 2023-08-09 11:59:15 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-08-09 11:59:15 -0400 |
commit | 5dd4b69ebf4f407a2ba7ccc53fe43b445ab0684e (patch) | |
tree | c0e5613aa4e33c7f436f9c67d0a4d75c1b9bfb77 /front-end/vite.config.local.ts | |
parent | c3c0ece6fb3a66c2de545858731a066d5542ff1e (diff) |
Package updates, lodash-es, release state fixes
Diffstat (limited to 'front-end/vite.config.local.ts')
-rw-r--r-- | front-end/vite.config.local.ts | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/front-end/vite.config.local.ts b/front-end/vite.config.local.ts new file mode 100644 index 0000000..c93c60c --- /dev/null +++ b/front-end/vite.config.local.ts @@ -0,0 +1,37 @@ + +import fs from 'fs' + +export const server = { + host: '0.0.0.0', + port: 8081, + strictPort: true, + proxy: { + '/public': { + target: 'https://www.vaughnnugent.com/public', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/public/, ''), + headers: { + //Don't send cookies to the remote server + 'cookies': "", + "pragma": "no-cache", + "Connection": "keep-alive", + "Cache-Control": "no-cache", + }, + }, + '/api': { + target: 'http://127.0.0.1:8089', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, ''), + headers: { + "sec-fetch-mode": "cors", + "referer": null, + "origin": "https://127.0.0.1:8080", + "Connection": "keep-alive", + } + } + }, + https: { + key: fs.readFileSync('F:\\downloads\\test.pem'), + cert: fs.readFileSync('F:\\downloads\\cert.pem'), + } +}
\ No newline at end of file |