Skip to content

Add node network-family timeout to prod start#767

Merged
pablopfg merged 2 commits intomainfrom
fix-Qr-Code-fix-increasing-network-family-timeout
Feb 10, 2026
Merged

Add node network-family timeout to prod start#767
pablopfg merged 2 commits intomainfrom
fix-Qr-Code-fix-increasing-network-family-timeout

Conversation

@pablopfg
Copy link
Owner

@pablopfg pablopfg commented Feb 10, 2026

Update package.json start:prod script to include Node's --network-family-autoselection-attempt-timeout=1000 flag. This raises the network family autoselection timeout to 1000ms to mitigate startup hangs or network resolution delays (IPv6/IPv4 autoselection) when running the production build.

Summary by CodeRabbit

  • Chores
    • Melhorada a robustez e eficiência da inicialização em produção com otimizações de configuração de rede que aumentam a velocidade na seleção automática da família de rede durante o startup, reduzindo significativamente possíveis atrasos e proporcionando uma experiência mais rápida, ágil e confiável na inicialização da aplicação em ambiente de produção.

Update package.json start:prod script to include Node's --network-family-autoselection-attempt-timeout=1000 flag. This raises the network family autoselection timeout to 1000ms to mitigate startup hangs or network resolution delays (IPv6/IPv4 autoselection) when running the production build.
@pablopfg
Copy link
Owner Author

pablopfg commented Feb 10, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

O script start:prod no arquivo package.json foi atualizado para incluir um sinalizador adicional de linha de comando do Node.js (--network-family-autoselection-attempt-timeout=1000) antes da execução do arquivo dist/main, substituindo a invocação anterior de node dist/main.

Changes

Cohort / File(s) Resumo
Configuração de Script
package.json
Script start:prod atualizado para incluir sinalizador de timeout de autoselecção de família de rede Node.js.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Um sinalizador novo chegou a brincar,
Na rede a família, sem demora vai rodar,
Timeout de autoselecção, sutil e leal,
O dist/main agora terá um cuidado especial! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning A descrição fornecida é breve mas descreve a mudança. O template requer seções estruturadas como 'Tipo de Mudança', 'Testes' e 'Checklist' que não foram preenchidas. Complete a descrição usando o template fornecido, preenchendo as seções: Tipo de Mudança, Testes, Checklist e outras seções obrigatórias.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed O título está totalmente relacionado à mudança principal: adicionar um flag de timeout de rede ao script de produção.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-Qr-Code-fix-increasing-network-family-timeout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 10, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Regenerate package-lock.json to apply multiple dependency updates and integrity/hash changes. Notable bumps include axios (1.13.4 → 1.13.5), many @esbuild platform binaries (0.27.2 → 0.27.3), @typescript-eslint family (8.54.0 → 8.55.0), @aws-sdk/util-endpoints (3.985.0 → 3.986.0) and related placements, @cacheable/utils (2.3.3 → 2.3.4), bowser (2.13.1 → 2.14.1), confbox (0.2.2 → 0.2.4), and several others. This change only updates the lockfile to reflect resolved versions and integrity hashes; no code or package.json changes were made.
@pablopfg pablopfg merged commit a3d8173 into main Feb 10, 2026
4 checks passed
@pablopfg pablopfg deleted the fix-Qr-Code-fix-increasing-network-family-timeout branch February 10, 2026 14:50
@pablopfg pablopfg restored the fix-Qr-Code-fix-increasing-network-family-timeout branch February 10, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant