Payload is a TypeScript-native headless CMS and application framework. You define collections in code, and Payload generates the admin panel, REST and GraphQL APIs, access control and a typed Local API. Self-hosting on a Hong Kong VPS keeps editors and content APIs close to Asia-Pacific audiences with no per-seat licence fees.
Step 1: Scaffold with PostgreSQL
npx create-payload-app@latest cms --db postgres
cd cms
cat > .env << 'EOF'
DATABASE_URI=postgresql://payload:StrongPass@127.0.0.1:5432/payload
PAYLOAD_SECRET=CHANGE_ME_64_RANDOM_CHARS
NEXT_PUBLIC_SERVER_URL=https://cms.example.com
EOF
Step 2: Define a Collection
// src/collections/Articles.ts
import type { CollectionConfig } from 'payload'
export const Articles: CollectionConfig = {
slug: 'articles',
admin: { useAsTitle: 'title' },
access: { read: () => true, create: ({ req }) => !!req.user },
versions: { drafts: true },
fields: [
{ name: 'title', type: 'text', required: true, localized: true },
{ name: 'slug', type: 'text', unique: true, index: true },
{ name: 'body', type: 'richText', localized: true },
{ name: 'publishedAt', type: 'date' },
],
}
Step 3: Build and Run
npm run build
pm2 start npm --name payload -- start
pm2 save
Step 4: Nginx and Uploads
server {
listen 443 ssl http2;
server_name cms.example.com;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Step 5: Query from a Frontend
const res = await fetch('https://cms.example.com/api/articles?limit=10&sort=-publishedAt&locale=zh')
const { docs } = await res.json()
Conclusion
Payload on a Hong Kong VPS gives developers a typed, code-defined CMS with built-in localisation, which suits bilingual English and Chinese sites. A 2 GB plan with PostgreSQL handles most editorial teams comfortably.
Host your CMS: Browse Server.HK Hong Kong VPS plans.
Related articles
Remix on Hong Kong VPS: Full-Stack React with Web Standards (2026)Nov 12, 2026Directus on Hong Kong VPS: Instant API for Any SQL Database (2026)Nov 14, 2026Self-Hosted Appwrite on Hong Kong VPS: Open-Source Backend (2026)Nov 15, 2026PocketBase on Hong Kong VPS: Single-Binary Backend (2026)Nov 16, 2026