From e01d324c4747b371a2971d4422b9f7fbeb3d5bb3 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Vieira Candido Date: Wed, 8 Nov 2023 15:27:31 -0300 Subject: [PATCH] Remove proxy --- src/api/axiosInstance.js | 2 +- vite.config.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/axiosInstance.js b/src/api/axiosInstance.js index 84c2d8d..18b7d06 100644 --- a/src/api/axiosInstance.js +++ b/src/api/axiosInstance.js @@ -4,7 +4,7 @@ import axios from "axios"; * Define uma instancia do axios com a baseURL definida */ export const axiosInstance = axios.create({ - baseURL: "/api", + baseURL: "https://interviewapipuc.azurewebsites.net/api", }); export default axiosInstance; diff --git a/vite.config.js b/vite.config.js index 183ad36..06488c6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,8 +9,8 @@ export default defineConfig({ alias: [{ find: "@", replacement: path.resolve(__dirname, "src") }], }, server: { - proxy: { - "/api": "https://interviewapipuc.azurewebsites.net", - }, + // proxy: { + // "/api": "https://interviewapipuc.azurewebsites.net", + // }, }, });