Back to all docs
SlashHub Docs

Domain Configuration

Domain mapping (.hk / .space) and CORS allowlist. Every product site, frontend + backend URLs, dev stack.

For developers~3 min readLast reviewed: 2026-07-02
S

SlashOne

Your account, your subscription, your products

Open

One account for the suite: one sign-in, one bill, one place to see every product you own.

Layer 3 · Federation2026slashhub.hk
One sign-in across every product
One bill, one card, one upgrade path
Organisation and role management
SlashAI included — the assistant inside every product
Next.js 16 (web)NestJS 11 (api Phase 1-4)FirestorePostgres
  • Frontend (HK): *.slashhub.hk — one host per product site, plus the account console
  • Backend (SPACE): api.*.slashhub.space — one API service per product
  • Foundation: app.slashhub.hk (SSO · subscription · account) and ai.slashhub.hk (SlashAI)
ServiceHostWhat it serves
SlashHub SSOapp.slashhub.hkSign-in, account, product links, revocation — the one issuer
Subscriptionapp.slashhub.hkPlans, entitlements, credits, reseller — the only entitlement source
SlashAIai.slashhub.hkThe agent runtime: tools, memory, approvals

Every product has its own front door and its own API (DEC-0225, 2026-11-15). Measured on 2026-11-17: every frontend below answered 200, and every API answered 200 on /v1/health.

ProductFrontendBackend API
SlashOneslashhub.hk (public site) · app.slashhub.hk (account)api.slashone.slashhub.space
SlashBooksbooks.slashhub.hkapi.books.slashhub.space
SlashStudiostudio.slashhub.hkapi.studio.slashhub.space
SlashMarketermarketer.slashhub.hkapi.marketer.slashhub.space
TimePlatetimeplate.slashhub.hkapi.timeplate.slashhub.space
SlashAI (foundation)ai.slashhub.hkapi.slashai.slashhub.space

One host per product, one API per product. A product is not reached through another product's host; app.slashhub.hk is the account console and the SSO issuer, not a shell that renders the other products. Products are linked by the three contracts (identity, entitlement, agent), not by shared routes.

api.slashhub.space no longer resolves (measured 2026-11-17: no answer); the SlashOne API is api.slashone.slashhub.space.

All backend APIs must accept requests from:

# Development
http://localhost:3000
http://localhost:3001
http://localhost:3002
http://localhost:8081

# Frontends (.hk)
https://slashhub.hk
https://app.slashhub.hk
https://books.slashhub.hk
https://studio.slashhub.hk
https://marketer.slashhub.hk
https://timeplate.slashhub.hk
https://ai.slashhub.hk

# Backend APIs (.space) — for server-to-server calls
https://api.slashone.slashhub.space
https://api.books.slashhub.space
https://api.studio.slashhub.space
https://api.marketer.slashhub.space
https://api.timeplate.slashhub.space
https://api.slashai.slashhub.space

Set via environment variable CORS_ORIGIN or ALLOWED_ORIGINS:

# Backend (comma-separated)
CORS_ORIGIN=https://slashhub.hk,https://app.slashhub.hk,https://books.slashhub.hk,https://studio.slashhub.hk,https://marketer.slashhub.hk,https://timeplate.slashhub.hk,https://ai.slashhub.hk,http://localhost:3000

# Frontend — each product points at its own API (SlashBooks shown)
NEXT_PUBLIC_API_URL=https://api.books.slashhub.space/api/v1

Historical. Recorded because old links and old env vars still use the long name.

The slashbooks.* domains were renamed to books.* (cleaner, shorter). See docs/product/operations/orgs-cutover.md for the full runbook. In short:

  1. Add new books.slashhub.hk + api.books.slashhub.space to Vercel + Railway
  2. Add Cloudflare DNS records pointing to the new host
  3. No 301 redirect exists. Measured 2026-11-21: slashbooks.slashhub.hk answers 200 and serves a full Next.js app from its own Vercel project (slashbooks-web)
  4. Update env vars in every product (replace the old API variable with the books one)
  5. Wait 90 days, then remove the old domain

The old host still serves the app itself, so slashbooks.slashhub.hk/* is a second live origin alongside books.slashhub.hk, not a redirect. SlashAI's getHealth() and other code paths already support both names during the transition.

Live origin, never re-approved. slashbooks.slashhub.hk is a live origin that no decision records as approved after the rename; whether it should be retired or explicitly bound is a DEC-level question, not a documentation one.


Last reviewed: 2026-11-21 — slashbooks.slashhub.hk re-measured: it answers 200 as a live Next.js origin (slashbooks-web), not the 301 this page described; that row, the paragraph under it, and the frontmatter date corrected.

Prior: 2026-11-17 — rebuilt against DEC-0225: foundation services have hosts, every product has its own host and API; all hosts and /v1/health endpoints re-measured 2026-11-17; the dead api.slashhub.space claim and the CORS example that named a closed host corrected; the slashbooks → books note is labelled historical.

Prior: 2026-11-13 — brand model applied (DEC-0211/0212): module hosts labelled as 301 targets; the marketplace's two hosts removed. That model was superseded by DEC-0225 on 2026-11-15.

Prior: 2026-06-28 (slashbooks → books rename)