mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 22:46:38 +08:00
seo 检索开关
This commit is contained in:
@@ -26,4 +26,6 @@ export interface PublicConfigResponse {
|
||||
email_register_verification_enabled: boolean;
|
||||
/** 目录显示配置 */
|
||||
menu_display_config?: Record<string, boolean>;
|
||||
/** 是否允许搜索引擎检索 */
|
||||
search_engine_indexing_enabled?: boolean;
|
||||
}
|
||||
|
||||
@@ -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 || '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user