seo 检索开关

This commit is contained in:
ryan
2026-06-09 08:35:13 +08:00
parent b0023787c5
commit 2ae55da52e
16 changed files with 163 additions and 5 deletions
+2
View File
@@ -26,4 +26,6 @@ export interface PublicConfigResponse {
email_register_verification_enabled: boolean;
/** 目录显示配置 */
menu_display_config?: Record<string, boolean>;
/** 是否允许搜索引擎检索 */
search_engine_indexing_enabled?: boolean;
}
+3
View File
@@ -7,6 +7,9 @@
* @returns API 基础 URL
*/
export function getApiBaseUrl(): string {
if (typeof window === 'undefined') {
return process.env.WAVELET_BACKEND_URL || process.env.NEXT_PUBLIC_WAVELET_BACKEND_URL || 'http://localhost:8000';
}
return process.env.NEXT_PUBLIC_WAVELET_BACKEND_URL || '';
}