export function plazaPreviewUrl(postId: string): string {
  const base = String(import.meta.env.VITE_PLAZA_BASE ?? 'https://plaza.tkmind.cn').replace(/\/$/, '');
  return `${base}/plaza/p/${encodeURIComponent(postId)}`;
}

export function mindSpaceLoginUrl(): string {
  const base = String(import.meta.env.VITE_MINDSPACE_BASE ?? 'http://localhost:5173').replace(/\/$/, '');
  return base;
}
