Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ No container runtime required. The steps below use Ubuntu/Debian; adapt package

### Prerequisites

- **Node.js 20+** — [nodejs.org](https://nodejs.org) or via your package manager
- **Node.js 22 (LTS)** — [nodejs.org](https://nodejs.org) or via your package manager. Newer majors break the backend: Node's built-in `fetch` conflicts with the pinned `undici` dispatcher.
- **PostgreSQL 16+**
- **Redis 7+**
- **nginx** — serves the built frontend and proxies API/WebSocket requests to the backend
Expand All @@ -261,8 +261,8 @@ No container runtime required. The steps below use Ubuntu/Debian; adapt package

**Ubuntu / Debian:**
```bash
# Node.js 20 via NodeSource
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
# Node.js 22 via NodeSource
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs postgresql redis-server nginx
```

Expand Down
3 changes: 3 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "mailflow-backend",
"version": "2.6.0",
"type": "module",
"engines": {
"node": ">=22 <23"
},
"scripts": {
"start": "node src/index.js",
"dev": "node --watch src/index.js",
Expand Down