fix(dev): switch frontend dev port from 4000 to 4005 due to Windows port exclusion
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei committed 2026-08-25 10:26:01 +03:30
1 parent 3f7c5a380a
commit de038dba7c
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ export default function Products() {
const getStoreProductUrl = (slug: string) => {
const isDev = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1';
if (isDev) {
return `http://localhost:4000/shop/${slug}`;
return `http://localhost:4005/shop/${slug}`;
}
// Production fallback based on actual URL
const storeOrigin = window.location.origin.replace('admin', 'www');