mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-28 15:51:29 +08:00
chore(cloud): point local dev at staging
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user