10 lines
392 B
TypeScript
10 lines
392 B
TypeScript
|
|
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;
|
||
|
|
}
|