fix(Deploy): Ajustes para deploy
This commit is contained in:
parent
0e552b457e
commit
af5246f5cc
2 changed files with 1 additions and 10 deletions
|
|
@ -3,15 +3,6 @@ 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": "/",
|
||||
"url": "https://api-saas-api-homologacao.gbrqne.easypanel.host/",
|
||||
"prefix": "api/v1/",
|
||||
"content_type": "application/json"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue