From 321e3092b782b2375066c67ca5f39cfb66d3aa3a Mon Sep 17 00:00:00 2001 From: keven Date: Mon, 29 Sep 2025 15:10:21 -0300 Subject: [PATCH] =?UTF-8?q?[MVPTN-80]=20deploy(Docker):=20Ajuste=20de=20AP?= =?UTF-8?q?I=20de=20requisi=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.ts | 10 +--------- src/services/api/Api.ts | 2 -- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/next.config.ts b/next.config.ts index 8d3a29b..050ff52 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,16 +1,8 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + // Isso gera um diretório otimizado que inclui tudo o que a aplicação precisa para rodar output: "standalone", - async rewrites() { - return [ - { - source: '/api/v1/:path*', - destination: 'http://api_saas_api_homologacao:8000/api/v1/:path*', - }, - ]; - }, - }; export default nextConfig; diff --git a/src/services/api/Api.ts b/src/services/api/Api.ts index bed106c..e3705e5 100644 --- a/src/services/api/Api.ts +++ b/src/services/api/Api.ts @@ -45,8 +45,6 @@ export default class API { const url = `${this.ApiSchema.url}${this.ApiSchema.prefix}${this.ApiSchema.endpoint}`; - console.log(url); - // Realiza a requisição const response = await fetch( url,