From 26eb0d154b97cc07c4da912547d3f6f8575dbc2d Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Thu, 20 Jul 2023 17:20:10 +0200 Subject: [PATCH] feat(webapp): add API-proxy to test dev build against prod API --- www/webapp/vite.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/webapp/vite.config.js b/www/webapp/vite.config.js index 1ca35568e..f50529eb6 100644 --- a/www/webapp/vite.config.js +++ b/www/webapp/vite.config.js @@ -19,6 +19,14 @@ export default defineConfig({ ], server: { port: 8080, + proxy: { + '/api': { + target: "https://desec.io", + changeOrigin: true, + secure: true, + // rewrite: path => path.replace('/api', ''), + } + } }, resolve: { alias: [{