Compare commits

..

18 Commits

Author SHA1 Message Date
parsa aghaei
8a6afa10d8 fix(seed): remove duplicate out-of-scope code in seed-products.ts
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-29 15:23:14 +03:30
parsa aghaei
7fd7140c9c merge: sync develop fixes to main for production deployment 2026-07-29 15:22:04 +03:30
parsa aghaei
9fdb652570 Merge branch 'develop' 2026-07-27 20:00:26 +03:30
parsa aghaei
e7df5b3964 fix(prisma): export main in seed modules and execute directly in seed.ts 2026-07-27 20:00:08 +03:30
parsa aghaei
ed2a684f80 fix(api): update API base URL to use env vars and target api.canina.ir / stageapi.canina.ir
Some checks failed
Deploy Canina / deploy (push) Failing after 8s
2026-07-27 19:15:06 +03:30
parsa aghaei
d4861f202e ci(deploy): update workflow timeout and deploy script
Some checks failed
Deploy Canina / deploy (push) Failing after 15m3s
2026-07-27 16:58:05 +03:30
parsa aghaei
6dd0e9ed56 ci(deploy): update production and stage domain routing configuration
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 16:52:39 +03:30
parsa aghaei
108b7b424b fix(prisma): add binaryTargets linux-musl-openssl-3.0.x for docker build
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 16:46:39 +03:30
parsa aghaei
77e2855d27 ci(deploy): trigger end-to-end CI/CD pipeline verification test
Some checks failed
Deploy Canina / deploy (push) Failing after 6m59s
2026-07-27 16:37:57 +03:30
parsa aghaei
73812ba11a ci(deploy): trigger full production deployment
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 15:11:05 +03:30
parsa aghaei
4a02b7aab2 ci(deploy): re-trigger deployment test with PRISMA_SKIP_POSTINSTALL_GENERATE
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 15:03:08 +03:30
parsa aghaei
6c6e240f3d fix(ssr-navigator): fix ReferenceError navigator is not defined during docker next build static export
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-27 14:50:29 +03:30
parsa aghaei
9e26a608e0 ci(deploy): re-trigger CI/CD pipeline deployment test
Some checks failed
Deploy Canina / deploy (push) Failing after 1m28s
2026-07-27 14:46:46 +03:30
parsa aghaei
d08cacad47 ci(deploy): trigger CI/CD pipeline test for node:20-alpine and set -e deployment script
Some checks failed
Deploy Canina / deploy (push) Failing after 1m17s
2026-07-27 14:30:34 +03:30
parsa aghaei
1ba944733c merge: merge develop into main with full-stack Video management, UI/UX fixes, Refill Cashback Loyalty, and Header Mega-Menu
All checks were successful
Deploy Canina / deploy (push) Successful in 44s
2026-07-27 13:57:01 +03:30
parsa aghaei
c38a50ac21 ci: test VPN selective routing fix
All checks were successful
Deploy Canina / deploy (push) Successful in 1m17s
2026-07-25 11:05:49 +03:30
parsa aghaei
ada1d03d00 Merge branch 'develop'
All checks were successful
Deploy Canina / deploy (push) Successful in 1m27s
2026-07-22 18:44:53 +03:30
parsa aghaei
22d5d5eb50 ci: trigger CI/CD pipeline test
All checks were successful
Deploy Canina / deploy (push) Successful in 10s
2026-07-22 18:36:32 +03:30

View File

@ -283,30 +283,6 @@ export async function main() {
console.warn(`[Seed] Warning upserting product ${artNo}:`, err.message || err); console.warn(`[Seed] Warning upserting product ${artNo}:`, err.message || err);
} }
// Seed ingredients
await prisma.productIngredient.deleteMany({ where: { productId: product.id } });
if (cleanIngredients) {
const parts = cleanIngredients.split(/[،,]/).map((s: string) => s.trim()).filter(Boolean);
const meaningful = parts.slice(0, 20);
for (const ing of meaningful) {
const truncated = ing.substring(0, 150);
if (truncated.length > 0) {
await prisma.productIngredient.create({
data: { productId: product.id, ingredient: truncated }
});
}
}
}
// Seed symptoms
await prisma.productSymptom.deleteMany({ where: { productId: product.id } });
const symptomsList = PRODUCT_SYMPTOMS_MAP[baseSlug] || [];
for (const sym of symptomsList) {
await prisma.productSymptom.create({
data: { productId: product.id, symptom: sym }
});
}
variantCount++; variantCount++;
} }
} }