I tied a Trendyol store to its own storefront that syncs itself twice a day, and built a bulk upload line.
Today
237 products are live; the last upload batch was accepted 20/20.
Next
Sending the rest of the 4,832-product pool and starting to measure.
Problem
The whole storefront of a Trendyol shop lived inside the marketplace; it had no current, searchable face on its own domain, and every product, price or stock change would have had to be updated by hand in two places.
Solution
A static catalogue storefront fed twice a day from the Trendyol Seller API by an automatic sync: price, stock and images come through that sync; AI-written titles, descriptions and FAQs; WebP and watermarked images; technical SEO; Cloudflare.
Read more
The cart sends the order list to WhatsApp. A bulk-listing pipeline from a B2B pool to Trendyol was built too.
Result
Live in catalogue-and-WhatsApp mode (payment is off); 237 products (17 Nov 2026).
Read more
The bulk-listing pipeline is partly done: 231 of the 4,832 products in the pool were sent in live batches and the last batch had 20/20 accepted. There is no sales or traffic data, so no impact claim.
The big pieces05
01
An automatic catalogue
Live
Price, stock and images pulled from the Trendyol Seller API twice a day by an automatic sync.
02
An AI content line
Live
Titles, descriptions and FAQs are generated and checked with a guard against rival names and generic words.
03
SEO and speed
Live
About 250 static pages; a canonical-versus-redirect conflict was resolved; a Merchant feed, IndexNow, Consent Mode.
04
A safe price engine
Live
A price increase cannot be applied twice: the multiplier lives inside the sync and is versioned.
05
A bulk-listing line
In development
Staged listing from a B2B pool to Trendyol: 231 of the 4,832 products in the pool have been sent.
Annotated drawing
01Trendyol Seller API
02Daily sync (Actions)1
03Static Astro site23
04Cloudflare edge4
05Visitor
The catalogue is fed twice a day by an automatic sync; redirects are resolved at the edge.
1
No commit when nothing changed: the sync writes the file only if data changed, using pagination, exponential backoff and atomic writes.
2
A price rise is applied by an idempotent script and verified at build: applied twice, it still does not compound.
3
Catalogue mode: with no checkout flow the cart became an “order list” and the purchase event was removed from analytics.
4
www→root 301, trailing-slash 308 and 45 permanent redirects are resolved at the edge; a canonical-vs-308 clash seen on 298 URLs was fixed.
Key details05
01 · Sync
The catalogue survives a failed sync
If the Trendyol connection fails, a request is tried up to three times with longer waits; if it still fails, the working catalogue is kept. The file is replaced only after it has been written out, one sync runs at a time, and nothing is recorded when nothing changed.
02 · Trap
A common word was mistaken for a brand
A text-cleaning rule mistook a common product word for a brand and damaged more than 190 product titles, deleting a word people search for. The damaged text was restored from a clean copy, and a guard now keeps common words out of that rule at sync time.
03 · Content
Content is generated only where it is missing
Titles, descriptions and FAQs are cached: the AI is called only for products that lack them, and an interrupted run resumes where it stopped. FAQs are specific to each product and appear only on its page; template FAQs were removed.
04 · Redirects
Old addresses are carried to the new ones
On the Cloudflare layer, 45 permanent redirects carry old addresses to the new ones: 38 merged duplicate products, 5 categories, 2 legal pages. The www address goes to the root domain and slash-less paths to the slashed form. The aim was to keep existing search value when addresses change.
05 · Listing
When unsure, do not upload
Each product is matched against Trendyol’s 3,858 leaf categories and about 50,000 brands; with no reliable match it is skipped, not guessed. Uploads run in small batches. In the last batch 189 products were skipped as unverified brands; 20 of 20 processed were accepted.
Decision log03
01
The canonical-versus-redirect clash
Passed over
Leaving the slash-less canonical address as it was.
Why
The tag that tells search engines the main address (canonical) pointed to the slash-less address, while Cloudflare redirected that address to the slashed one; a site crawl found the clash on 298 URLs. Addresses were set to one slashed form and canonicals are built without queries; a check script found no slash-less address across 10,527 links.
02
A price rise cannot be applied twice
Passed over
Multiplying the data file by hand.
Why
Because each sync rewrites the file, a manual multiplication would not last, and a rise applied twice would compound. The multiplier moved inside the sync: the raw price is stored separately, a version stamp rejects a second application of the same version, the change can be reverted, and the build does not proceed without passing a verifier.
03
The checkout promise now matches the real flow
Passed over
Leaving the cart and “buy” wording as it was.
Why
A legal and UI audit showed that the site said it handed over to another sales channel while offering only WhatsApp. Commerce was switched off with a “catalogue mode” flag (the code was kept), the cart became an “order list”, the wording was adjusted and the purchase event was removed from analytics.
Stack
Astro
Cloudflare Workers
Cloudflare Pages
GitHub Actions
Node.js
Sharp
Trendyol API V2
Lighthouse
Backstage06
Untied view: raw records from the evidence table, not a live log.
upload reportLocal records show 231 of the pool’s 4,832 products sent to Trendyol in 14 live batches; in the last batch, on 16 May, 20 of 20 processed were accepted and 189 were skipped as unverified brands.
git historyA common product word had been mistaken for a brand and damaged more than 190 titles; repair records on this date restored the text from a clean copy, and a common-word guard was made mandatory at sync.
git historyThe canonical-versus-redirect clash (298 URLs in a crawl) was fixed by moving to one slashed form; internal links were converted and a slash-check script was added.
git historyA duplicate merge cut the catalogue to 197 products; the sync robot restored it to 237 the same day. The merge script was not wired into the sync chain; a fix was proposed, not applied.
audit reportA broad audit found 71 issues; the plan reached 80 active findings and 74 were closed on 17 Nov. In the same round the site went into catalogue mode: the cart became an “order list” and the purchase event left analytics.
catalogue dataThe last recorded catalogue sync held 237 products; the build produced a static page for each product, for 10 brands and for 7 categories. The sync is set up to run twice a day.