fix(preview): call correct Worker handler to resolve HTTP 500
davoodmehraban89 committed
Oct 15, 2026 at 08:34 UTC
1df05187e00c0caf74595d5a46d2f774b6dae34b
1 file changed
+1
-1
commerce/edge/preview-worker.js
+1
-1
@@ -1,5 +1,5 @@
1
/* Self-contained accessible preview. No client JavaScript, external resources or real commerce data. */
2
-addEventListener("fetch", event => event.respondWith(show(event.request)));
2
+addEventListener("fetch", event => event.respondWith(serve(event.request)));
3
const I18N = {
4
fa:{dir:"rtl",banner:"پیشنمایش طراحی؛ خرید و پرداخت غیرفعال است",h:"فروشگاه شما،",h2:"در یک نگاه متفاوت",desc:"پیشنمایش سبک فروشگاه چندکشوری مدوسا، بدون نیاز به اجرای جاوااسکریپت.",market:"انتخاب کشور",language:"زبان",examples:"مجموعههای نمونه",info:"این موارد فقط نمونه طراحی هستند؛ قیمت، موجودی و امکان سفارش واقعی ندارند.",cat:"دستهبندی",all:"همه",iranian:"محصولات منتخب ایران",electronics:"دیجیتال و الکترونیک",search:"جستوجو",placeholder:"جستوجو در نمونهها",empty:"موردی مطابق جستوجو نبود",more:"توضیحات نمونه",name:["گوشی هوشمند","لپتاپ","لوازم صوتی","دوربین","چای ایرانی","سفال ایرانی","منسوجات دستباف","زعفران"],countries:["ایران","امارات","عمان","عراق","قطر"]},
5
en:{dir:"ltr",banner:"Design preview; purchase and payment are disabled",h:"Your store,",h2:"a fresh perspective",desc:"A lightweight Medusa storefront showcase across five markets, with no client-side JavaScript required.",market:"Select market",language:"Language",examples:"Sample collections",info:"Illustrative design samples only: no real price, stock or checkout.",cat:"Category",all:"All",iranian:"Iran-origin collections",electronics:"Electronics",search:"Search",placeholder:"Search examples",empty:"No examples matched",more:"Sample details",name:["Smartphone","Laptop","Audio accessories","Camera","Iranian tea","Iranian pottery","Handwoven textiles","Saffron"],countries:["Iran","UAE","Oman","Iraq","Qatar"]},