Add backend-generated sitemap with website manifest sync and nginx SEO proxy support.

Stores synced route config from /meshkee/sitemap-config.json, serves sitemap.xml and robots.txt per tenant, and invalidates cache on CMS writes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-22 15:15:32 +03:30
co-authored by Cursor
parent c7d5204b49
commit 2e8d7c1cfd
27 changed files with 1167 additions and 3 deletions
@@ -107,6 +107,41 @@ export type SpecialProductsSource = (typeof SPECIAL_PRODUCTS_SOURCE_IDS)[number]
/** Per-business website CMS settings. */
export type WebsiteSettings = {
specialProductsSource: SpecialProductsSource;
/** Imported from GET https://{domain}/meshkee/sitemap-config.json */
sitemapConfig?: WebsiteSitemapConfig | null;
};
export type SitemapChangefreq =
| 'always'
| 'hourly'
| 'daily'
| 'weekly'
| 'monthly'
| 'yearly'
| 'never';
export type SitemapStaticPageConfig = {
path: string;
changefreq?: SitemapChangefreq;
priority?: number;
};
export type SitemapPathTemplatesConfig = {
product?: string;
blog?: string;
portfolio?: string;
storeItemByProduct?: string;
video?: string;
instruction?: string;
workshop?: string;
userProduct?: string;
};
export type WebsiteSitemapConfig = {
baseUrl?: string | null;
staticPages?: SitemapStaticPageConfig[];
templates?: SitemapPathTemplatesConfig;
syncedAt?: string | null;
};
/** Optional business-dashboard CMS modules. Always-on areas (customers, website, etc.) are not listed. */