Commit Graph

293 Commits

Author SHA1 Message Date
Unchained bea6aba014 fix: simplify workflow with proper build args
Build and Deploy / build (push) Successful in 0s
2026-04-05 13:02:05 +02:00
Unchained 8454ffc5b3 test: trigger build with args
Build and Deploy / build (push) Has been cancelled
2026-04-05 12:59:49 +02:00
Unchained 38defdfb9b chore: remove test workflow
Build and Deploy / build (push) Has been cancelled
2026-04-05 12:59:13 +02:00
Flux CD 9c04dffa46 fix: add missing build args to workflow 2026-04-05 10:58:54 +00:00
Unchained bd1fa0d96a test: add no-cache build workflow
Build and Deploy / build (push) Successful in 59s
2026-04-05 12:53:44 +02:00
Unchained 826d1ebb46 trigger: rebuild with correct env vars
Build and Deploy / build (push) Successful in 59s
Previous build had localhost:8000 hardcoded.
This rebuild uses the fixed Dockerfile with build args.
2026-04-05 12:30:07 +02:00
Unchained 09b0614695 fix: remove kubectl annotate from build workflow
Build and Deploy / build (push) Successful in 59s
- Remove kubectl command that was causing build failures
- Flux will auto-detect new image within 5 minutes via polling
- Simpler, more reliable build process
2026-04-05 12:03:27 +02:00
Unchained 7c7611b723 fix: simplify build workflow YAML syntax
Build and Deploy / build (push) Successful in 10m0s
- Use 'command' and 'args' instead of multiline command
- Use quoted heredoc delimiter to prevent variable expansion
- Simplify clone and build scripts
2026-04-05 11:50:23 +02:00
Unchained 6563f0c966 fix: use full cluster DNS for gitea service
Build and Deploy / build (push) Has been cancelled
- Change gitea URL from http://gitea:3000 to http://gitea.gitea.svc.cluster.local:3000
- Add set -x for debugging
- Add explicit clone exit code checking
2026-04-05 11:43:57 +02:00
Unchained cdbcd8424b fix: improve git clone error handling in build workflow
Build and Deploy / build (push) Has been cancelled
2026-04-05 11:39:39 +02:00
Unchained 05b2c26634 fix: correct syntax errors in build workflow
Build and Deploy / build (push) Has been cancelled
- Fix unclosed quote on line 13
- Remove malformed git checkout command on line 39
2026-04-05 11:35:01 +02:00
Unchained bdc35ff2b4 fix: remove quotes from date command in build workflow
Build and Deploy / build (push) Failing after 0s
2026-04-05 11:31:59 +02:00
Unchained d53665d6da build: pass env vars as build args to fix localhost:8000 error
Build and Deploy / build (push) Failing after 0s
- Add ARG and ENV directives to Dockerfile for NEXT_PUBLIC_* vars
- Pass build args in buildctl command with --opt build-arg
- Fixes ERR_BLOCKED_BY_CLIENT on localhost:8000/graphql
2026-04-05 11:24:01 +02:00
Flux CD 80da03504c ci: add Gitea Actions workflow with BuildKit 2026-04-05 06:16:10 +00:00
Unchained 328bbbaaa2 ci: add Gitea Actions workflow with BuildKit
Build and Deploy / build (push) Failing after 23m52s
2026-04-05 08:13:55 +02:00
Flux CD 37d1894ad4 fix: remove image transformer, use deployment image directly 2026-04-05 05:10:32 +00:00
Flux CD 6236092d77 feat: add image policy setter marker for Flux automation 2026-04-05 05:07:17 +00:00
Flux CD 61b20beffa feat: switch to pre-built GHCR image using BuildKit 2026-04-05 05:02:51 +00:00
Unchained 29894cd555 chore: trigger Gitea Actions build
Build and Push to GHCR / build (push) Failing after 4m0s
2026-04-05 06:32:05 +02:00
Unchained c80970bcda feat(ci): add Gitea Actions workflow for building and pushing to GHCR
Build and Push to GHCR / build (push) Has been cancelled
Add .gitea/workflows/build.yaml that:
- Builds Docker image on push to master
- Pushes to ghcr.io/unchainedio/manoon-headless
- Tags with commit SHA and 'latest'
- Updates k8s/kustomization.yaml with new image tag
- Commits and pushes the tag update back to repo

Requires Gitea Actions runner to be configured.
2026-04-05 06:24:36 +02:00
Unchained 1dec08f857 Revert to working deployment while GHCR image builds
Build and Deploy / build (push) Failing after 12m23s
Will re-apply pre-built image once GitHub Actions successfully
pushes image to ghcr.io/unchainedio/manoon-headless
2026-04-05 06:15:54 +02:00
Unchained cc33d317ba fix(k8s): use latest tag for manoon-headless image
Build and Deploy / build (push) Has been cancelled
Temporary fix until GitHub Actions builds and pushes the image.
Workflow will update to specific SHA on next push.
2026-04-05 06:12:44 +02:00
Unchained 3c495f48b7 refactor(k8s): use pre-built GHCR image instead of building in pod
Build and Deploy / build (push) Has been cancelled
- Remove init containers (clone, install, build)
- Use ghcr.io/unchainedio/manoon-headless:latest image
- Faster pod startup, less resource usage
- Image built by GitHub Actions on push to master
2026-04-05 06:09:55 +02:00
Unchained a636d29f0b fix(k8s): handle existing workspace on pod restart
Build and Deploy / build (push) Has been cancelled
The clone init container was failing with 'destination path already exists'
when the pod restarted. EmptyDir volumes persist across container restarts
but init containers run again.

Now checks if workspace exists:
- If .git directory exists: fetch and reset to latest master
- If not: clean and clone fresh

This fixes the CrashLoopBackOff caused by failed clone attempts.
2026-04-05 05:17:30 +02:00
Unchained 6caefb420a docs: add OpenCode project memory for git workflow
Build and Deploy / build (push) Has been cancelled
2026-04-03 21:06:15 +02:00
Unchained cbbcaace22 docs: add git workflow guidelines
Build and Deploy / build (push) Has been cancelled
2026-04-03 21:03:04 +02:00
Unchained eb711fbf1a feat(popup): add email capture popup with Mautic integration
Build and Deploy / build (push) Has been cancelled
- Email capture popup with scroll (10%) and exit intent triggers
- First name field and full tracking (UTM, device, time on page)
- Mautic API integration for contact creation
- GeoIP detection for country/region
- 4 locale support (sr, en, de, fr)
- Mautic tracking script in layout
2026-04-03 20:44:15 +02:00
Unchained 4e5481af1a fix(layout): restore ExitIntentDetector and Mautic tracking
Build and Deploy / build (push) Has been cancelled
2026-04-03 20:27:25 +02:00
Unchained 618298b1b1 fix(layout): restore original structure, keep only Rybbit direct URL fix
Build and Deploy / build (push) Has been cancelled
Revert unintended changes from previous commit:
- Restore AnalyticsProvider (was accidentally removed)
- Remove ExitIntentDetector (feature branch code)
- Remove Mautic tracking script (feature branch code)

Keep only the intended Rybbit fix:
- Direct connection to Rybbit instead of server-side proxy
2026-04-03 20:14:07 +02:00
Unchained d999d739d5 fix(analytics): connect directly to Rybbit to preserve real visitor IP
Build and Deploy / build (push) Has been cancelled
Changed Rybbit script loading from server-side rewrite to client-side direct
connection. This prevents Next.js from proxying the request, which was causing
all visitor IPs to show as the Hetzner server IP (138.201.11.251).

Before:
- Browser → Next.js → Rybbit (server-side proxy, loses client IP)

After:
- Browser → Rybbit (direct connection, real IP preserved)

Changes:
- layout.tsx: Use direct Rybbit URL for script src
- next.config.ts: Remove /api/script.js rewrite
2026-04-03 20:10:59 +02:00
Unchained 0f00aa8a47 Add Mautic environment variables to deployment
Build and Deploy / build (push) Has been cancelled
2026-04-03 16:31:40 +02:00
Unchained 93b239bc5a Merge branch 'dev'
Build and Deploy / build (push) Has been cancelled
2026-04-03 16:12:02 +02:00
Unchained 1ed6cac647 fix(k8s): use NodePort with externalTrafficPolicy Local to preserve client IP
Build and Deploy / build (push) Has been cancelled
Change storefront service from ClusterIP to NodePort with externalTrafficPolicy: Local.
This preserves the real client source IP instead of NATing to the node IP.

Fixes analytics tracking showing Hetzner IP (138.201.11.251) instead of real visitor IPs.
Same fix previously applied to Rybbit backend service.

Note: On single-node clusters, this works seamlessly. Traefik routes directly
to the node where the pod is running, preserving the original source IP.
2026-04-03 06:55:42 +02:00
Unchained e476bc9fc4 fix(k8s): add HTTP to HTTPS redirect for manoonoils.com
Build and Deploy / build (push) Has been cancelled
- Create redirect-https middleware for permanent redirect (301)
- Split IngressRoute: HTTP route redirects to HTTPS, HTTPS route serves app
- Fixes Google Search Console 404 error on HTTP version
- No application code changes, only routing configuration
2026-04-02 22:50:43 +02:00
Unchained f4f23aa7f3 fix(k8s): add HTTP to HTTPS redirect for manoonoils.com
- Create redirect-https middleware for permanent redirect (301)
- Split IngressRoute: HTTP route redirects to HTTPS, HTTPS route serves app
- Fixes Google Search Console 404 error on HTTP version
- No application code changes, only routing configuration
2026-04-02 22:49:26 +02:00
Unchained 9124eeedc1 fix: add ts-ignore for request.ip runtime property
Build and Deploy / build (push) Has been cancelled
2026-04-01 10:47:09 +02:00
Unchained 6843d2db36 fix(404): add redirects for broken URLs and custom not-found page
Build and Deploy / build (push) Has been cancelled
- Add permanent redirects for /products/manoon to /products
- Strip malformed /contact suffix from product URLs
- Create custom branded 404 page with product navigation
- Add NotFound translations for en and sr locales
2026-04-01 10:24:09 +02:00
Unchained 0b9ddeedc8 fix(analytics): properly forward client IPs to Rybbit and OpenPanel
- Create new API route /api/rybbit/track to proxy Rybbit tracking requests
- Extract real client IP from Cloudflare headers (cf-connecting-ip)
- Forward X-Forwarded-For and X-Real-IP headers to analytics backends
- Update OpenPanel proxy to also forward client IP
- Update next.config.ts rewrite to use internal API route

This fixes geo-location issues where all traffic appeared to come from
Cloudflare edge locations instead of actual visitor countries.
2026-04-01 10:24:09 +02:00
Unchained a3873bb50d fix(analytics): properly forward client IPs to Rybbit and OpenPanel
- Create new API route /api/rybbit/track to proxy Rybbit tracking requests
- Extract real client IP from Cloudflare headers (cf-connecting-ip)
- Forward X-Forwarded-For and X-Real-IP headers to analytics backends
- Update OpenPanel proxy to also forward client IP
- Update next.config.ts rewrite to use internal API route

This fixes geo-location issues where all traffic appeared to come from
Cloudflare edge locations instead of actual visitor countries.
2026-04-01 07:42:34 +02:00
Unchained 3c9c091c46 fix: revert HeroVideo aspect-ratio, fix ProblemSection scroll animation with useEffect
Build and Deploy / build (push) Has been cancelled
2026-04-01 06:43:43 +02:00
Unchained 27af03ba3a feat(performance): optimize Core Web Vitals with CSS animations and lazy analytics
- Replace framer-motion with CSS animations in TrustBadges, AsSeenIn, ProblemSection
- Create AnalyticsProvider client component for OpenPanel lazy-loading
- Fix HeroVideo CLS with explicit aspect-ratio (4/3)
- Remove deprecated swcMinify from next.config (enabled by default)
- Add optimizePackageImports for better tree-shaking
2026-04-01 06:14:49 +02:00
Unchained ad20ffe588 Merge branch 'dev'
Build and Deploy / build (push) Has been cancelled
2026-04-01 05:17:48 +02:00
Unchained 13301dca12 fix: use middleware.ts instead of proxy.ts for build compatibility 2026-04-01 05:17:36 +02:00
Unchained e57169a807 fix: revert proxy back to middleware for Next.js build compatibility 2026-04-01 05:15:42 +02:00
Unchained 3697a5d8ea fix: rename middleware to proxy for Next.js 16 compatibility
Build and Deploy / build (push) Has been cancelled
2026-04-01 04:19:07 +02:00
Unchained edd5c1582b feat(performance): add ISR and Cloudflare cache headers
- Add revalidate=3600 to homepage and products page (1hr ISR)
- Add middleware to set cache headers for HTML pages
- Bypass cache for checkout and cart pages
2026-03-31 20:08:56 +02:00
Unchained dff78b28a5 fix(analytics): restore OpenPanel proxy routes
Build and Deploy / build (push) Has been cancelled
2026-03-31 13:47:14 +02:00
Unchained b4905ce4ee chore: remove OpenPanel proxy routes (keeping core vitals changes)
Build and Deploy / build (push) Has been cancelled
2026-03-31 13:44:53 +02:00
Unchained e87c655a5b Merge branch 'feature/web-vitals-optimization' into dev
Build and Deploy / build (push) Has been cancelled
2026-03-31 13:22:45 +02:00
Unchained 1c5ec1a271 fix: remove framer-motion from HeroVideo for instant content visibility 2026-03-31 13:22:45 +02:00