Skip to content

Add NODE_ENV configuration for production cyf-hosting deployments#1727

Merged
illicitonion merged 2 commits intoCodeYourFuture:mainfrom
Abubakar-Meigag:node-env-guide
Feb 5, 2026
Merged

Add NODE_ENV configuration for production cyf-hosting deployments#1727
illicitonion merged 2 commits intoCodeYourFuture:mainfrom
Abubakar-Meigag:node-env-guide

Conversation

@Abubakar-Meigag
Copy link
Contributor

What does this change?

Adds step-by-step instructions for configuring NODE_ENV on all Node.js applications deployed to CYF Hosting.

Changes:

  • Added environment variable configuration guide to backend deployment docs
  • Added environment variable configuration guide to frontend deployment docs
  • Includes screenshots showing the Coolify UI workflow

Why this is important:

This configuration is now mandatory for all JavaScript/Node.js projects deployed to CYF Hosting. Without NODE_ENV, applications run in development mode with file watching enabled, consuming ~100x more system resources per container. This inefficiency led to infrastructure failures on January 28, 2026, when file descriptors were exhausted across 150+ deployments. Setting NODE_ENV ensures applications run efficiently and maintains hosting stability for all users.

Common Content?

  • Block/s = N/A

Common Theme?

  • No

Issue number: # Related to infrastructure incident on 2026-01-28

Org Content?

Guide | CYF Hosting | Deployment | Configuration

Checklist

Who needs to know about this?

@illicitonion

Adds instructions to set NODE_ENV=production for all Node.js applications to prevent resource exhaustion on the hosting infrastructure.

Changes:
- Added step-by-step guide for setting NODE_ENV environment variable
- Includes screenshots for clarity
- Applied to both backend and frontend deployment guides

This configuration is now mandatory for all JavaScript/Node.js projects to ensure applications run in production mode rather than development mode.
@netlify
Copy link

netlify bot commented Jan 29, 2026

Deploy Preview for cyf-curriculum ready!

Name Link
🔨 Latest commit 93e1012
🔍 Latest deploy log https://app.netlify.com/projects/cyf-curriculum/deploys/697ccd7c6303cb00084bdddc
😎 Deploy Preview https://deploy-preview-1727--cyf-curriculum.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 73 (🔴 down 12 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-piscine pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-common pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-sdc pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-itd pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-tracks pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for cyf-launch pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 93e1012

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - a few small suggestions, thanks!

Copy link
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thank you!

@github-project-automation github-project-automation bot moved this from 📋 Backlog to 👀 In review in Curriculum Planning Feb 5, 2026
@illicitonion illicitonion merged commit f171c63 into CodeYourFuture:main Feb 5, 2026
7 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Curriculum Planning Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants