mirror of
https://github.com/luxfi/explore.git
synced 2026-07-27 05:54:15 +00:00
Build the same source four ways from one repo:
- ghcr.io/luxfi/explore (lux brand, default)
- ghcr.io/luxfi/explore-hanzo (hanzo brand)
- ghcr.io/luxfi/explore-zoo (zoo brand)
- ghcr.io/luxfi/explore-pars (pars brand)
Each is built for linux/amd64 + linux/arm64 in parallel on hanzo ARC
runners (no QEMU), then merged into a multi-arch manifest.
Brand selection at build time via NEXT_PUBLIC_BRAND, with all
brand-specific assets (logo, favicon, theme, IAM URL) loaded from
NEXT_PUBLIC_* env vars — no hardcoded brand strings in source.
External operators set NEXT_PUBLIC_BRAND=other and supply their own
NEXT_PUBLIC_* env vars (see .env.example.external). The repo carries
no third-party trademarks.
Files:
- lib/white-label.ts brand detection + helpers
- .env.example.{lux,hanzo,zoo,pars,external} deploy templates
- .github/workflows/build-lux.yml 4-brand × 2-arch matrix
- Dockerfile accept NEXT_PUBLIC_BRAND
- configs/app/chainRegistry.ts add SPC + Pars devnet,
chainId fields, white-label
chain builder
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Zoo Explorer — Zoo Labs Foundation brand.
|
|
# Use: cp .env.example.zoo .env.local && pnpm build
|
|
|
|
NEXT_PUBLIC_BRAND=zoo
|
|
|
|
# Network (Zoo subnet on Lux mainnet)
|
|
NEXT_PUBLIC_NETWORK_NAME=Zoo Chain
|
|
NEXT_PUBLIC_NETWORK_SHORT_NAME=ZOO
|
|
NEXT_PUBLIC_NETWORK_ID=200200
|
|
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=ZOO
|
|
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=ZOO
|
|
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
|
|
|
|
# API
|
|
NEXT_PUBLIC_API_HOST=api-explore-zoo.lux.network
|
|
NEXT_PUBLIC_API_PROTOCOL=https
|
|
NEXT_PUBLIC_API_BASE_PATH=/
|
|
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=wss
|
|
|
|
# App
|
|
NEXT_PUBLIC_APP_HOST=explore.zoo.ngo
|
|
NEXT_PUBLIC_APP_PROTOCOL=https
|
|
NEXT_PUBLIC_IS_TESTNET=false
|
|
|
|
# Branding
|
|
NEXT_PUBLIC_NETWORK_ORG_NAME=Zoo Labs Foundation
|
|
NEXT_PUBLIC_NETWORK_WEBSITE_URL=https://zoo.ngo
|
|
NEXT_PUBLIC_NETWORK_DESCRIPTION=Open AI research network — decentralized AI and science.
|
|
NEXT_PUBLIC_NETWORK_GITHUB_URL=https://github.com/zooai
|
|
NEXT_PUBLIC_NETWORK_TWITTER_URL=https://x.com/zoolabs
|
|
NEXT_PUBLIC_NETWORK_DISCORD_URL=https://discord.gg/zoolabs
|
|
|
|
# Auth (IAM)
|
|
NEXT_PUBLIC_ACCOUNT_AUTH_PROVIDER=oidc
|
|
NEXT_PUBLIC_OIDC_SERVER_URL=https://zoo.id
|
|
NEXT_PUBLIC_OIDC_CLIENT_ID=zoo-explore-client-id
|
|
|
|
# Theme
|
|
NEXT_PUBLIC_COLOR_THEME_DEFAULT=dark
|