[MVPTN-80] deploy(Docker): Ajuste de API de requisição
This commit is contained in:
parent
858043697e
commit
321e3092b7
2 changed files with 1 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue