feat(website): church details, settings, audit log, search engine data, safer editing
Church details saved through Accounts' church.update (live at once). Settings: Search Console and Bing codes, Coming soon line, menu order. Audit log and recent edits. A made share image, Event / VideoObject / PodcastEpisode / BreadcrumbList structured data, permanent redirects from old page addresses. Saves refused when someone else saved in between; Ministry leaders' events; templates previewed with the church's own content before choosing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,7 @@ export const loadContent = cache(async (): Promise<SiteContent> => {
|
||||
headers: {
|
||||
...(session ? { Cookie: `ccw_session=${encodeURIComponent(session)}` } : {}),
|
||||
...(preview !== "admin" ? { "x-preview-token": preview } : {}),
|
||||
...(jar.get("ccw_preview_template")?.value ? { "x-preview-template": jar.get("ccw_preview_template")!.value } : {}),
|
||||
},
|
||||
});
|
||||
if (res.ok) return (await res.json()) as SiteContent;
|
||||
|
||||
Reference in New Issue
Block a user