wmj
81fc76ff5f
build: add .dockerignore, optimize Dockerfile for limited memory
Build & Deploy Mobile / build-and-deploy (push) Failing after 42s
2026-07-07 02:41:20 +02:00
wmj
bb6d62cab5
build: add Dockerfile for production build
Build & Deploy Mobile / build-and-deploy (push) Failing after 4m58s
2026-07-07 02:20:40 +02:00
wmj
a1c5fecd83
pivot: migrate V1 mobile from Docker to Netlify serverless
...
- Switch Prisma schema from SQLite to PostgreSQL
- Add netlify.toml for Netlify deployment config
- Add @netlify/plugin-nextjs for serverless Next.js
- Remove Docker build files (Dockerfile, docker-compose, start.sh)
- Remove auto-healer and scripts directories
- Update next.config.ts (remove standalone output)
- Database: falah_mobile_v1 on Contabo Postgres
2026-06-28 23:02:48 +02:00
Antigravity AI
641b5a2769
fix: replace fragile printf start.sh with COPY start.sh
...
The RUN printf approach had a POSIX printf bug where \\c stopped
output, truncating the startup script. Now start.sh is a proper
file COPYed into the image.
2026-06-28 18:10:56 +08:00
Antigravity AI
4efe921207
fix(docker): use npm ci inside image instead of copying host node_modules
2026-06-28 15:59:43 +08:00
pi-agent
0098d9ca4a
feat: auto-healing system — HEALTHCHECK, rate-limiter cleanup, auto-rollback CI, watchdog
...
- Dockerfile: add HEALTHCHECK (30s interval, 10s timeout, 3 retries)
- rate-limit.ts: auto-cleanup stale entries every 5 min (prevents memory leak)
- scripts/auto-heal.sh: watchdog for Synology cron — auto-restarts container,
reloads nginx gateway, escalates on excessive failures
- CI workflow: auto-rollback on deploy failure (tags :rollback image,
reverts if health check fails after deploy)
2026-06-28 02:52:11 +08:00
pi-agent
aac485ba30
fix: add HOSTNAME=0.0.0.0 to start.sh for proper port binding in Docker
2026-06-28 02:15:32 +08:00
pi-agent
5e4457fe34
fix: copy all node_modules into Docker image (instead of selective prisma copies)
2026-06-28 01:36:23 +08:00
pi-agent
d36aba8c58
fix: prisma db push --accept-data-loss in startup script
2026-06-28 01:30:47 +08:00
pi-agent
de48918acf
security: fix critical webhook direct upgrade path, seed auth, CORS Vary header
...
- Webhook polar/route: block direct ?userId=&tier= upgrades in production (NODE_ENV guard)
- Seed route: require ADMIN_SECRET via x-admin-secret header
- Feedback route: require FEEDBACK_ADMIN_TOKEN env var in production
- CORS middleware: add Vary: Origin header for caching correctness
- MOCK_PAYMENTS: add NODE_ENV production guard
- Wallet top-up: add production guard for mock mode when POLAR_ACCESS_TOKEN unset
2026-06-28 01:15:45 +08:00
root
cfff74e2db
feat: Souq native integration + auth simplification + CE-wide enhancements
...
Souq Marketplace:
- Native souq pages: browse+filters, create listing, detail+seller profile, orders+chat
- New API: reviews (POST), sellers/[id], upload (multipart), polar-checkout webhook
- Listings API enhanced: minPrice, maxPrice, sortBy, deliveryDays filters
- Seller workflow: start order, mark delivered, upload files, confirm delivery
- Wallet: 5 Polar.sh FLH tiers, production checkout, mock fallback, success banner
- Fix: order redirect /souq/history → /souq/orders
Auth System:
- Unified auth page, removed OAuth provider routing (2 files deleted)
- Deleted oauth.ts (319 lines) — simplified auth chain
- Streamlined login/register API routes
Prisma Schema (+179 lines):
- New models: Listing, Purchase, Review, Group/GroupMember
- Gamification: DailyStreak, XpTransaction, Achievement, UserLevel
- Learning: LearnCourse/Module/Enrollment/Certificate
- Notifications, Referrals, Dhikr, PremiumBenefits
Deleted legacy code:
- src/app/api/marketplace/* (3 files) — replaced by /api/souq/*
- src/app/api/files/[listingId]/route.ts — replaced by /api/souq/upload
- src/app/api/seller/[sellerId]/route.ts — replaced by /api/souq/sellers/[id]
Infrastructure:
- Dockerfile: standalone output, Prisma runtime migration
- docker-compose.yml: Polar env vars, healthcheck fix
- docker-compose.staging.yml: staging on port 4014
- .gitea/workflows/ci.yml: CI pipeline
2026-06-24 07:02:03 +02:00
root
ed34b186f9
Referral page, bug fixes, seed data, persona tiers
...
- New /refer page with share/copy/stats
- Fixed modal z-index conflicts (z-50 → z-[60]) across forum, groups, souq, halal-monitor
- Seed route: forum categories, marketplace listings, private groups
- Mufti/Daie personas now available in Premium tier
- Fixed referral share link: falahos.my/mobile/auth?ref=CODE
- Fixed client-side persona access check for premium
2026-06-18 09:38:05 +02:00
root
15300d3e42
fix: basePath=/mobile, Traefik health check, DB perms, demo email fix, login UI text bump
2026-06-15 11:32:14 +02:00
root
6423430275
Add Docker deployment + Alpine binary target fix
2026-06-15 09:37:43 +02:00
root
5483dd291e
Initial Falah Mobile rebuild — all 7 blocks complete
...
- Auth system (login/register/profile)
- Nur AI chat with persona system
- Souq marketplace with FLH economy
- Forum community with Shariah moderation
- Wallet & FLH top-up
- Premium/Pro tier upgrade with Polar.sh
- Halal Monitor with map & bookmarks
- Home dashboard with daily verse & streaks
- Health endpoints
Next.js 16.2.7, Prisma v5 SQLite, JWT auth, Tailwind CSS v4
2026-06-15 09:28:22 +02:00