From eb7812761b4af2d85638293b80a6007c3221fc55 Mon Sep 17 00:00:00 2001 From: suyua9 <1521777066@qq.com> Date: Fri, 3 Apr 2026 23:44:06 +0800 Subject: [PATCH 1/2] docs: align runtime requirements with current setup --- SELF-HOSTING.md | 4 ++-- packages/prompts.chat/README.md | 2 +- src/app/docs/self-hosting/page.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SELF-HOSTING.md b/SELF-HOSTING.md index ad62a6c9..c3d9ee2e 100644 --- a/SELF-HOSTING.md +++ b/SELF-HOSTING.md @@ -32,9 +32,9 @@ This guide explains how to deploy **prompts.chat** on your own private server fo ## Prerequisites -- **Node.js** 18+ +- **Node.js** 24.x - **PostgreSQL** database -- **npm** or **yarn** +- **npm** ## Environment Variables diff --git a/packages/prompts.chat/README.md b/packages/prompts.chat/README.md index 701df83e..1640f17f 100644 --- a/packages/prompts.chat/README.md +++ b/packages/prompts.chat/README.md @@ -2375,7 +2375,7 @@ import type { ## Requirements -- **Node.js** 18+ +- **Node.js** 24.x - **TypeScript** 5+ (optional, for type checking) --- diff --git a/src/app/docs/self-hosting/page.tsx b/src/app/docs/self-hosting/page.tsx index 3010c4fa..a8b2ab6c 100644 --- a/src/app/docs/self-hosting/page.tsx +++ b/src/app/docs/self-hosting/page.tsx @@ -110,9 +110,9 @@ export default function SelfHostingPage() { Prerequisites From c8d6fdf321cb91635a8ce3cc10c79d4b927d25a0 Mon Sep 17 00:00:00 2001 From: suyua9 <1521777066@qq.com> Date: Fri, 3 Apr 2026 23:53:57 +0800 Subject: [PATCH 2/2] fix: localize self-hosting prerequisites --- messages/ar.json | 7 +++++++ messages/az.json | 7 +++++++ messages/de.json | 7 +++++++ messages/el.json | 7 +++++++ messages/en.json | 7 +++++++ messages/es.json | 7 +++++++ messages/fa.json | 7 +++++++ messages/fr.json | 7 +++++++ messages/he.json | 7 +++++++ messages/it.json | 7 +++++++ messages/ja.json | 7 +++++++ messages/ko.json | 7 +++++++ messages/nl.json | 7 +++++++ messages/pt.json | 7 +++++++ messages/ru.json | 7 +++++++ messages/tr.json | 7 +++++++ messages/zh.json | 7 +++++++ src/app/docs/self-hosting/page.tsx | 11 +++++++---- 18 files changed, 126 insertions(+), 4 deletions(-) diff --git a/messages/ar.json b/messages/ar.json index 338d49e1..02f6eb23 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -2263,5 +2263,12 @@ "submit": "إرسال", "communityExamples": "أمثلة المجتمع", "userExample": "مثال المستخدم" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/az.json b/messages/az.json index 21ffbdae..3ea9445a 100644 --- a/messages/az.json +++ b/messages/az.json @@ -2277,5 +2277,12 @@ "submit": "Göndər", "communityExamples": "İcma Nümunələri", "userExample": "İstifadəçi nümunəsi" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/de.json b/messages/de.json index 505b344d..1fab74e9 100644 --- a/messages/de.json +++ b/messages/de.json @@ -2277,5 +2277,12 @@ "submit": "Absenden", "communityExamples": "Community-Beispiele", "userExample": "Benutzerbeispiel" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/el.json b/messages/el.json index 57514c55..2849caa7 100644 --- a/messages/el.json +++ b/messages/el.json @@ -2268,5 +2268,12 @@ "submit": "Υποβολή", "communityExamples": "Παραδείγματα Κοινότητας", "userExample": "Παράδειγμα Χρήστη" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/en.json b/messages/en.json index bfcdacd1..47c710fd 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2281,5 +2281,12 @@ "submit": "Submit", "communityExamples": "Community Examples", "userExample": "User example" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/es.json b/messages/es.json index 76e3016e..5243c54d 100644 --- a/messages/es.json +++ b/messages/es.json @@ -2280,5 +2280,12 @@ "submit": "Enviar", "communityExamples": "Ejemplos de la Comunidad", "userExample": "Ejemplo de usuario" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/fa.json b/messages/fa.json index ec65df0f..81e36555 100644 --- a/messages/fa.json +++ b/messages/fa.json @@ -2261,5 +2261,12 @@ "submit": "ارسال", "communityExamples": "مثال‌های جامعه", "userExample": "مثال کاربر" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/fr.json b/messages/fr.json index aa9a0ae7..7afafdf7 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -2280,5 +2280,12 @@ "submit": "Soumettre", "communityExamples": "Exemples de la Communauté", "userExample": "Exemple utilisateur" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/he.json b/messages/he.json index 8da32f02..009a53a9 100644 --- a/messages/he.json +++ b/messages/he.json @@ -2261,5 +2261,12 @@ "submit": "שלח", "communityExamples": "דוגמאות קהילה", "userExample": "דוגמת משתמש" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/it.json b/messages/it.json index 1de9c0be..52494ac1 100644 --- a/messages/it.json +++ b/messages/it.json @@ -2283,5 +2283,12 @@ "submit": "Invia", "communityExamples": "Esempi della Community", "userExample": "Esempio utente" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/ja.json b/messages/ja.json index 627366ce..c5eb5004 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -2265,5 +2265,12 @@ "submit": "送信", "communityExamples": "コミュニティの例", "userExample": "ユーザーの例" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/ko.json b/messages/ko.json index dc6e1504..c5c027ab 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -2265,5 +2265,12 @@ "submit": "제출", "communityExamples": "커뮤니티 예제", "userExample": "사용자 예제" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/nl.json b/messages/nl.json index 7c3779ef..fc86139f 100644 --- a/messages/nl.json +++ b/messages/nl.json @@ -2268,5 +2268,12 @@ "submit": "Versturen", "communityExamples": "Community Voorbeelden", "userExample": "Gebruikers Voorbeeld" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/pt.json b/messages/pt.json index efefd69b..f5c25c3d 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -2279,5 +2279,12 @@ "submit": "Enviar", "communityExamples": "Exemplos da Comunidade", "userExample": "Exemplo do usuário" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/ru.json b/messages/ru.json index d37c3c1f..2bf1c5da 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -2262,5 +2262,12 @@ "submit": "Отправить", "communityExamples": "Примеры сообщества", "userExample": "Пример пользователя" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/tr.json b/messages/tr.json index b69db441..6d41f0ca 100644 --- a/messages/tr.json +++ b/messages/tr.json @@ -2276,5 +2276,12 @@ "submit": "Gönder", "communityExamples": "Topluluk Örnekleri", "userExample": "Kullanıcı örneği" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/messages/zh.json b/messages/zh.json index 5812f511..f44c4986 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -2265,5 +2265,12 @@ "submit": "提交", "communityExamples": "社区示例", "userExample": "用户示例" + }, + "selfHosting": { + "prerequisites": { + "nodeJs": "Node.js 24.x", + "postgresql": "PostgreSQL database", + "npm": "npm" + } } } diff --git a/src/app/docs/self-hosting/page.tsx b/src/app/docs/self-hosting/page.tsx index a8b2ab6c..40251f9e 100644 --- a/src/app/docs/self-hosting/page.tsx +++ b/src/app/docs/self-hosting/page.tsx @@ -1,5 +1,6 @@ import Link from "next/link"; import Image from "next/image"; +import { getTranslations } from "next-intl/server"; import { Server, Database, Key, Palette, Globe, Settings, Cpu } from "lucide-react"; import DeepWikiIcon from "@/../public/deepwiki.svg"; import Context7Icon from "@/../public/context7.svg"; @@ -17,7 +18,9 @@ export const metadata = { description: "Deploy your own prompts.chat instance with customizable branding, themes, and authentication", }; -export default function SelfHostingPage() { +export default async function SelfHostingPage() { + const t = await getTranslations("selfHosting"); + return (

Self-Hosting Guide

@@ -110,9 +113,9 @@ export default function SelfHostingPage() { Prerequisites