diff --git a/vite.config.ts b/vite.config.ts index d2861ed..1dfbcd7 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,11 +6,16 @@ export default defineConfig({ plugins: [react()], server: { port: 3000, + allowedHosts: [ + 'localhost', + '127.0.0.1', + 'advx.martinsevieira.adv.br' + ], proxy: { '/api': { - target: 'http://localhost:5000', + target: 'https://advx.martinsevieira.adv.br:5000', changeOrigin: true, - secure: false, + secure: true, } }, },