[MVPTN-80] deploy(Docker): Ajuste de API de requisição
This commit is contained in:
parent
321e3092b7
commit
68cff2650c
2 changed files with 10 additions and 1 deletions
|
|
@ -3,6 +3,15 @@ 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 [
|
||||
{
|
||||
// Tudo que começar com /api/v1 será redirecionado
|
||||
source: '/api/v1/:path*',
|
||||
destination: 'http://api_saas_api_homologacao:8000/api/v1/:path*',
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"state": "go",
|
||||
"api": {
|
||||
"url": "http://api_saas_api_homologacao:8000/",
|
||||
"url": "/",
|
||||
"prefix": "api/v1/",
|
||||
"content_type": "application/json"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue