Domains & Deployment

canonical term: deployment environment

Domains

EnvironmentDomainPurpose
Staginghttps://houseoflegends.vnPre-production testing
Productionhttps://houseoflegends.vnLive site

API Routing

The Hono backend is mounted at /api/* on both domains:
EnvironmentAPI Endpoint
Staginghttps://houseoflegends.vn/api/*
Productionhttps://houseoflegends.vn/api/*

Frontend Routing

EnvironmentDomain
Staginghttps://houseoflegends.vn
Productionhttps://houseoflegends.vn

Deployment

The target deployment flow is GitHub Actions driven:
# Feature work
feature/* -> dev -> Preview

# Production release
dev -> main -> Production
See CI/CD for the feature development and deployment workflow. The Hono backend still runs on Cloudflare Workers. Local wrangler deploy is emergency-only once CI/CD is active. Secrets are managed via wrangler secret put:
wrangler secret put ONEPAY_MERCHANT_ID
wrangler secret put BETTER_AUTH_SECRET
wrangler secret put SUPERUSER_API_TOKEN
# ... etc
See OnePay for payment gateway credentials.