chore(cloud): point local dev at staging

This commit is contained in:
saltbo
2026-05-09 20:38:06 -04:00
parent b6c20d7650
commit 02d88b0684
4 changed files with 9 additions and 2 deletions
+3
View File
@@ -3,3 +3,6 @@
# Required: better-auth signing secret. Generate with: openssl rand -base64 32
BETTER_AUTH_SECRET=
# Optional: point local development at a non-production ZPan Cloud.
ZPAN_CLOUD_URL=https://zpan-cloud-staging.saltbo.workers.dev
+2
View File
@@ -8,6 +8,8 @@
//
// Keys are PASERK k4.public.* strings (Ed25519, 32 raw bytes, base64url-encoded).
export const PUBLIC_KEYS: string[] = [
// zpan-cloud staging key — provisioned 2026-05-09
'k4.public.CCpUZ1yRWkFQy4fPZAblCYfzeJn4vDwPQrjtfiySwFc',
// cloud.zpan.space production key — provisioned 2026-04-24
'k4.public.N_r-lhhAfhR8sOk0pl8zlzU5dNRl2tvpUT94uODPZ1w',
]
+3 -1
View File
@@ -52,6 +52,8 @@ const LOCAL_PRO_FEATURES = FEATURE_REGISTRY.filter(
'gateKey' in item && item.gateKey != null && !('comingSoon' in item && item.comingSoon),
).map((item) => item.gateKey)
const cloudDashboardUrl = `${(import.meta.env.VITE_ZPAN_CLOUD_URL || 'https://cloud.zpan.space').replace(/\/$/, '')}/dashboard`
interface BoundStatusCardProps {
state: BindingState
}
@@ -115,7 +117,7 @@ export function BoundStatusCard({ state }: BoundStatusCardProps) {
</div>
<div className="flex w-full gap-2 sm:w-auto">
<Button asChild>
<a href="https://cloud.zpan.space/dashboard" target="_blank" rel="noopener noreferrer">
<a href={cloudDashboardUrl} target="_blank" rel="noopener noreferrer">
<ExternalLink className="mr-2 size-4" />
{t('settings.billing.bound.manageButton')}
</a>
+1 -1
View File
@@ -150,7 +150,7 @@ export function PairingModal({ open, onOpenChange }: PairingModalProps) {
rel="noopener noreferrer"
className="font-medium underline underline-offset-4"
>
cloud.zpan.space/pair
{pairingInfo.pairingUrl}
</a>
</li>
<li className="text-muted-foreground">{t('settings.billing.pairing.step2')}</li>