Closed joelbrs closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bank-web.com.br | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 22, 2024 11:54am |
bank.com.br.server | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 22, 2024 11:54am |
[!CAUTION]
Review failed
The pull request is closed.
As melhorias realizadas nas configurações do servidor incluem a adição da variável de ambiente NODE_ENV
, que permite uma gestão de ambiente mais eficaz, e atualizações na lógica de configuração de cookies para segurança aprimorada. O tempo de expiração do cookie de autenticação foi estendido para sete dias, facilitando a experiência do usuário. Essas mudanças visam tornar o aplicativo mais robusto e seguro, otimizando seu comportamento conforme o ambiente de execução.
Arquivo | Resumo da Mudança |
---|---|
apps/server/.env.example |
Adicionada a variável NODE_ENV ; AUTH_REDIRECT_URL inalterada. |
apps/server/src/authentication.ts |
Modificada a função setCookies para definir o domínio com base em NODE_ENV e aumentar maxAge para 7 dias. |
apps/server/src/config/environment.ts |
Adicionada a propriedade NODE_ENV ao environment_schema com controle de valores e padrão "production". |
sequenceDiagram
participant User
participant Server
participant CookieManager
User->>Server: Solicitação de autenticação
Server->>CookieManager: Configurar cookies
CookieManager->>Server: Cookies configurados com `NODE_ENV`
Server->>User: Resposta com cookies
🐰 No campo verde, onde eu pulo e brinco,
Novas variáveis brotam, como flores no brinco.
Cookies duradouros, com sabor de alegria,
Em ambientes seguros, dançam em harmonia.
Com cada mudança, o futuro é radiante,
No mundo do código, sou um coelho vibrante! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Novos Recursos
NODE_ENV
para configurar o ambiente de execução (desenvolvimento, produção).Melhorias
NODE_ENV
, garantindo que somente valores específicos sejam aceitos, com um padrão de "produção".