Skip to content

fix: add health check to get rid of the downtime between deployments#488

Merged
ItsNeil17 merged 1 commit intomainfrom
fix/downtime-between-deployments
Mar 18, 2026
Merged

fix: add health check to get rid of the downtime between deployments#488
ItsNeil17 merged 1 commit intomainfrom
fix/downtime-between-deployments

Conversation

@okunamayanad
Copy link
Member

Pull Request

Description

Adds HEALTHCHECK operation to dockerfile to assure Docker does not mark the container as healthy until Next boots up and starts serving the site.

This also:

  • gets rid of the downtime between deployments as Dokploy will now keep the old container running until the new container is healthy
  • fixes the bug where Cloudflare's edge cache breaks if it gets timed just right and hits the site when it's partly down as Next is booting up.

Type of Change

  • Documentation fix (typo, grammar, clarification)
  • New documentation (guide, tutorial, page)
  • Bug fix
  • New feature
  • Other

Screenshots

If applicable, add before/after screenshots:

Checklist

  • Tested locally with bun run dev
  • Formatted code to adhere Styleguide with bun format
  • Ran bun audit (no critical vulnerabilities)
  • Checked spelling and grammar
  • Verified all links work
  • Followed Contributing Guidelines

Thank you for contributing!

@ItsNeil17 ItsNeil17 merged commit 4c192e3 into main Mar 18, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants