diff --git a/src/modules/analytics/index.ts b/src/modules/analytics/index.ts index abbf5f7..f60cced 100644 --- a/src/modules/analytics/index.ts +++ b/src/modules/analytics/index.ts @@ -1,4 +1,4 @@ +export { getAnalyticsConfig } from './getAnalyticsConfig.js' // Server-safe: config type + the helper that reads IDs from SiteIntegrations. // The component is client-side — exported via ./client. export type { AnalyticsConfig } from './types.js' -export { getAnalyticsConfig } from './getAnalyticsConfig.js' diff --git a/src/modules/pages/systemPagesFields.ts b/src/modules/pages/systemPagesFields.ts index 2438093..e95678e 100644 --- a/src/modules/pages/systemPagesFields.ts +++ b/src/modules/pages/systemPagesFields.ts @@ -9,6 +9,7 @@ const ROLE_LABELS: Record = { cookiePolicy: 'Cookie Policy', homepage: 'Homepage', privacyPolicy: 'Privacy Policy', + termsOfService: 'Terms of Service', } /** Admin descriptions per role. */ @@ -16,6 +17,7 @@ const ROLE_DESCRIPTIONS: Record = { cookiePolicy: 'Page linked from the cookie consent banner.', homepage: 'Page served at the locale root (e.g. /pl, /en).', privacyPolicy: 'Page linked as the privacy policy.', + termsOfService: 'Page linked as the terms of service / site regulations.', } /** diff --git a/src/modules/pages/types.ts b/src/modules/pages/types.ts index 3d00796..a4d5563 100644 --- a/src/modules/pages/types.ts +++ b/src/modules/pages/types.ts @@ -2,7 +2,7 @@ * Built-in "system page" roles — documents from the client's Pages * collection that the site references by function rather than by slug. */ -export type SystemPageRole = 'cookiePolicy' | 'homepage' | 'privacyPolicy' +export type SystemPageRole = 'cookiePolicy' | 'homepage' | 'privacyPolicy' | 'termsOfService' /** * All system roles in a stable order (used when no subset is configured). @@ -11,6 +11,7 @@ export const ALL_SYSTEM_PAGE_ROLES: readonly SystemPageRole[] = [ 'homepage', 'privacyPolicy', 'cookiePolicy', + 'termsOfService', ] /**