Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/daemon/src/routes/marketplace-reviews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ interface ReviewsSyncConfig {
readonly lastSyncError: string | null;
}

// Production sync endpoint — set by Nicholai after deploying the Cloudflare Worker.
Comment thread
aaf2tbz marked this conversation as resolved.
Outdated
// Until then, users can override via PATCH /api/marketplace/reviews/config.
// TODO: replace placeholder with live Worker URL once deployed.
const REVIEWS_SYNC_URL = "https://reviews.signetai.sh/api/reviews/sync";

const DEFAULT_CONFIG: ReviewsSyncConfig = {
enabled: false,
endpointUrl: "",
endpointUrl: REVIEWS_SYNC_URL,
lastSyncAt: null,
lastSyncError: null,
};
Expand Down Expand Up @@ -344,7 +349,7 @@ export function mountMarketplaceReviewsRoutes(app: Hono): void {
try {
const response = await fetch(config.endpointUrl, {
method: "POST",
headers: { "Content-Type": "application/json" },
headers: { "Content-Type": "application/json", "X-Signet-Sync": "1" },
Comment thread
aaf2tbz marked this conversation as resolved.
body: JSON.stringify({
source: "signet-marketplace",
type: "reviews-sync",
Expand Down
Loading