Fix sitemap sync sending JWT by enabling auth on the API request.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-22 19:33:16 +03:30
co-authored by Cursor
parent 5926f772e2
commit a39aef0c8c
@@ -14,6 +14,9 @@ export interface WebsiteSitemapConfig {
function businessPath(suffix: string) {
const businessId = getActiveBusinessId()
if (!businessId) {
throw new Error('No active business selected. Please sign in again.')
}
return `/businesses/${businessId}/website/sitemap${suffix}`
}
@@ -23,5 +26,6 @@ export async function syncWebsiteSitemapConfig() {
sitemapConfig: WebsiteSitemapConfig
}>(businessPath('/sync'), {
method: 'POST',
auth: true,
})
}