Commit Graph

547 Commits

Author SHA1 Message Date
parsa aghaei
a8dd6efddb fix(deploy): sync deploy.sh container conflict fix to main
Some checks failed
Deploy Canina / deploy (push) Failing after 12s
2026-07-29 16:08:08 +03:30
parsa aghaei
b115c971f5 fix(deploy): use --remove-orphans in docker compose up to avoid container name conflicts
All checks were successful
Deploy Canina / deploy (push) Successful in 47s
2026-07-29 16:07:43 +03:30
parsa aghaei
a767e9a6b8 merge: sync develop fixes into main
Some checks failed
Deploy Canina / deploy (push) Failing after 9m25s
2026-07-29 15:55:50 +03:30
parsa aghaei
bf60df34ef fix(seed): safely handle blog upsert in try-catch block
All checks were successful
Deploy Canina / deploy (push) Successful in 2m6s
2026-07-29 15:49:39 +03:30
parsa aghaei
84d9ed3a9d perf(docker): replace slow RUN chown -R with fast COPY --chown in backend Dockerfile 2026-07-29 15:48:26 +03:30
parsa aghaei
62bd8811fa style: apply standard ESLint & Prettier formatting across backend
All checks were successful
Deploy Canina / deploy (push) Successful in 4m58s
2026-07-29 15:41:53 +03:30
parsa aghaei
ae636c8b03 fix(seed): add explicit String casting for ingredient and symptom loop items to satisfy TypeScript compiler 2026-07-29 15:40:44 +03:30
parsa aghaei
3ede3c31f9 fix(seed): format seed-products.ts with Prettier and add type annotations for ESLint 2026-07-29 15:40:01 +03:30
parsa aghaei
ddf2bafb3c fix(seed): deduplicate ingredients and symptoms to ensure clean database seeding 2026-07-29 15:38:15 +03:30
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
e1fb300b87 fix(seed): handle duplicate product barcodes safely with try-catch in seed-products.ts
Some checks failed
Deploy Canina / deploy (push) Has been cancelled
2026-07-29 15:21:41 +03:30
parsa aghaei
485c6bfec6 fix(prisma): add dedicated tsconfig.seed.json for clean cross-platform seeding
All checks were successful
Deploy Canina / deploy (push) Successful in 5m57s
2026-07-29 14:36:20 +03:30
parsa aghaei
782720d86d fix: use ts-node transpile-only with CJS override for seed (no new packages)
All checks were successful
Deploy Canina / deploy (push) Successful in 10m25s
- Remove tsx (Nexus doesn't have it cached - causes E404)
- Use ts-node --transpile-only --compiler-options with module:CommonJS
  to bypass nodenext ESM cycle issue without any new dependencies
- Copy tsconfig.json to runtime container for ts-node compatibility
2026-07-29 14:21:58 +03:30
parsa aghaei
813f5d7bc6 fix: use tsx for prisma seed to resolve ESM/CJS cycle in Node 20
Some checks failed
Deploy Canina / deploy (push) Failing after 41s
- Replace ts-node/esm loader with tsx which handles nodenext module natively
- tsx avoids ERR_REQUIRE_CYCLE_MODULE with Prisma client ESM/CJS interop
- Add tsx ^4.19.0 as devDependency
2026-07-29 14:14:20 +03:30
parsa aghaei
776829e099 fix: seed command ESM compatibility and CI/CD timeout increase
All checks were successful
Deploy Canina / deploy (push) Successful in 10m5s
- Fix prisma seed command: use node --loader ts-node/esm (nodenext module needs ESM loader)
- Increase CI/CD timeout from 15m to 40m to accommodate Docker build + VPN time
- Prisma env vars already in compose files for OpenSSL 3.0.x binary selection
2026-07-29 14:00:00 +03:30
parsa aghaei
431e2b547d fix: Prisma OpenSSL engine binary detection on Alpine
All checks were successful
Deploy Canina / deploy (push) Successful in 34s
- Set PRISMA_SCHEMA_ENGINE_BINARY to 3.0.x binary path
- Set PRISMA_QUERY_ENGINE_LIBRARY to 3.0.x library path
- node:20-alpine has libssl.so.3 but no openssl CLI binary
- Prisma detection fails silently, defaults to 1.1.x engines
- Explicit paths bypass detection and use correct binaries
- Remove apk add openssl (not needed, causes build failure without VPN)
- backend Dockerfile: use PRISMA_CLI_BINARY_TARGETS to generate correct client
2026-07-29 09:21:39 +03:30
parsa aghaei
501addc909 fix: CI/CD pipeline, dynamic API URLs, Dockerfile fixes
All checks were successful
Deploy Canina / deploy (push) Successful in 5m39s
- Backend Dockerfile: add chown for node_modules (Prisma permissions fix)
- Frontend Dockerfile: add ARG/ENV for NEXT_PUBLIC_API_URL, VITE_API_URL
- nginx.conf: template with __PLACEHOLDERS__ for per-env substitution
- deploy.yml: SSH keepalive, sudo for VPN
- api.ts: dynamic API URL via env vars instead of hardcoded
- next.config.ts: rewrite only in development mode
- scripts: deploy.sh, compose.stage.yml, compose.prod.yml
2026-07-28 16:37:05 +03:30
parsa aghaei
ee65d87899 fix(prisma): export main in seed modules and execute directly in seed.ts 2026-07-28 16:36:30 +03:30
devops
cb08843956 test: trigger CI/CD stage deployment
Some checks failed
Deploy Canina / deploy (push) Failing after 9s
2026-07-28 06:41:45 +00:00
devops
75eaa13617 chore: update to canina.ir domains, remove parsaaghayi.ir
Some checks failed
Deploy Canina / deploy (push) Failing after 44s
2026-07-28 06:37:16 +00:00
devops
476d7759f4 chore: update to canina.ir domains, remove parsaaghayi.ir
Some checks failed
Deploy Canina / deploy (push) Failing after 11s
2026-07-28 06:37:02 +00:00
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
devops
2bbe244ab6 test: trigger CI/CD
Some checks failed
Deploy Canina / deploy (push) Failing after 17s
2026-07-27 16:12:16 +00:00
devops
a4620ad310 test: trigger CI/CD
Some checks failed
Deploy Canina / deploy (push) Failing after 10s
2026-07-27 16:09:20 +00:00
devops
e4c196b080 fix: VPN build, caching, Dockerfile fixes for Iran network
Some checks failed
Deploy Canina / deploy (push) Failing after 12s
2026-07-27 16:06:59 +00:00
devops
41d7629d2a fix: VPN build, caching, Dockerfile fixes for Iran network
Some checks failed
Deploy Canina / deploy (push) Failing after 12s
2026-07-27 16:06:35 +00:00
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
027f169830 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) Has been cancelled
2026-07-27 19:14:35 +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
fecc3cfb65 ci(deploy): increase job timeout to 15m and configure buildkit fast build
Some checks failed
Deploy Canina / deploy (push) Failing after 15m3s
2026-07-27 16:57:42 +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
885ec72f25 ci(deploy): configure CI/CD for develop (stage.canina.ir) and main (canina.ir) domains
Some checks failed
Deploy Canina / deploy (push) Failing after 3m3s
2026-07-27 16:52:19 +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
0540d8701e fix(prisma): add binaryTargets linux-musl-openssl-3.0.x to schema.prisma 2026-07-27 16:46:33 +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
dac41b14ee fix(ssr-navigator): resolve ReferenceError navigator is not defined during Next.js static prerendering in useNetworkStatus hook 2026-07-27 14:50:15 +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
eb6318ecc1 feat(catalog-drag-scroll): add interactive mouse drag-to-scroll and wheel scroll handlers to catalog category pills 2026-07-27 13:40:43 +03:30
parsa aghaei
f089f7ed91 fix(prisma-videos-ide): resolve IDE TypeScript error by accessing video model through typed getter helper in VideosService 2026-07-27 13:39:35 +03:30
parsa aghaei
5c4a553f0c fix(catalog-hscroll-cms-buttons): add sleek custom horizontal scrollbar for catalog categories and fix high-contrast purple styling for admin CMS buttons 2026-07-27 12:36:23 +03:30
parsa aghaei
3e9fffe71f feat(cms-builder-videos-hydration-catalog): resolve IDE Prisma types, fix Header hydration error, add Media Upload & Aparat embed to Admin Videos, fix Catalog scrollbar/spacing, and overhaul CMS into section-by-section Visual Page Builder 2026-07-27 12:25:36 +03:30
parsa aghaei
2b1bd9efcb feat(header-refill-videos): restore full DB seeding, wire homepage videos to backend API, upgrade Refill to Cashback Loyalty system, and refactor Header into 2-tier Mega-Menu layout 2026-07-27 12:07:29 +03:30
parsa aghaei
83ccdc19ef fix(imports): add missing useSettingsStore import in VetGallery.tsx 2026-07-27 11:56:18 +03:30