NZS LUXE: a fashion storefront for two markets
I built and run a quiet-luxury fashion store from scratch, with a content admin a small team can use, a Pakistan shop, a UAE shop, and the fixes that keep it standing.
The problem
I wanted a storefront for my own fashion label that looked like a premium brand and not a template, and that a small team could run without a developer: add products, edit page text, run campaigns, and take orders in two markets with different prices and delivery rules.
How I built it
React 19, TypeScript and Vite on the front with Tailwind and Framer Motion for the look, Supabase for the database and the editable page content, Cloudflare R2 for photos, and an Express backend for admin and AI helpers, deployed on Vercel. Page text and homepage content live in one content row the team edits in the admin, products live in a table. In October I split the store into two markets: a Pakistan shop, and a UAE shop with fixed AED prices and WhatsApp-only orders, each with its own delivery rule.
What got hard
- The store showed zero products to visitors, twice, because of storage limits at the database host. A September outage returned 402 errors on every API call.
Photos had been moved to Cloudflare R2 but the originals stayed behind, so storage reached 124% of the limit and blocked everything, database included. I cleared 3,243 orphaned files through the host's management API, then finished the migration properly: the remaining 902 images moved, every database link rewritten, and a re-scan run until zero old links were left.
- A month of homepage work vanished overnight.
Every page load was writing the whole content row back to the database, so a visitor's stale copy overwrote the live one. I removed that write and added a database trigger that rejects any content change that does not carry a strictly newer timestamp. A probe before and after showed one write per visit drop to none.
- A promo would have discounted prices twice. Every product's selling price already carried a 30% discount shown against an 'original price'.
I ran campaign prices as an override computed at display and checkout from one setting, with a kill switch, instead of rewriting product rows. An earlier campaign that rewrote 28 rows could only be undone from a backup file.
- Product photos added in the admin sometimes fell back to inline images, which swelled the product table to 17.5 MB and stalled every page for 8 to 10 seconds. The fix for it existed, but the bug kept coming back.
I capped upload concurrency, then traced the recurrence to the release path: the fix sat on the main branch for two days while the site deploys from another branch. After any fix I now compare the two branches before calling it live.
The result
Live at nzs-luxe.com in two markets, with 464 commits between February and November 2026 and a small team adding products and editing content through the admin on its own.
The ← and → keys turn the page too.
