Files
homarr/packages/server-settings/src/index.ts
Manuel 19cd41a8e5 feat: add crawling settings (#959)
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
2024-09-06 22:51:18 +02:00

23 lines
603 B
TypeScript

export const defaultServerSettingsKeys = ["analytics", "crawlingAndIndexing"] as const;
export type ServerSettingsRecord = {
[key in (typeof defaultServerSettingsKeys)[number]]: Record<string, unknown>;
};
export const defaultServerSettings = {
analytics: {
enableGeneral: true,
enableWidgetData: false,
enableIntegrationData: false,
enableUserData: false,
},
crawlingAndIndexing: {
noIndex: true,
noFollow: true,
noTranslate: true,
noSiteLinksSearchBox: false,
},
} satisfies ServerSettingsRecord;
export type ServerSettings = typeof defaultServerSettings;