[MVPTN-80] deploy(Docker): Ajuste de API de requisição

This commit is contained in:
Keven Willian Pereira de Souza 2025-09-29 14:21:47 -03:00
parent 9c0d58e745
commit bbc22ab916
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ const nextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
source: '/api/v1/:path*',
destination: 'http://api_saas_api_homologacao:8000/:path*', // backend interno
},
];

View file

@ -45,7 +45,7 @@ export default class API {
// Realiza a requisição
const response = await fetch(
`/${this.ApiSchema.prefix}${this.ApiSchema.endpoint}`,
`${this.ApiSchema.endpoint}`,
{
method: _data.method,
headers: {