Commit Graph

12 Commits

Author SHA1 Message Date
Enguerrand Ozano
522f883257 Add dedicated users/me route using payload.auth 2026-03-01 12:13:17 +01:00
Enguerrand Ozano
e69fa0fff2 Add dedicated users/me route using payload.auth 2026-03-01 12:11:21 +01:00
Enguerrand Ozano
fc881e5178 Configure Payload + Postgres on Dokploy 2026-02-28 18:45:36 +01:00
Enguerrand Ozano
2895ae0cd3 Configure Payload with Postgres + push true 2026-02-28 18:33:30 +01:00
Enguerrand Ozano
05284eab72 add payload cms config 2026-02-28 14:34:53 +01:00
Claude
956c7ece01 fix: purge dépendances orphelines + force cleanDistDir
Cause du build error :
  Le CI avait dans son cache .next des routes compilées d'une ancienne
  version du projet (/api/admin/candidatures/[id]/approve) qui instanciait
  un SDK Anthropic sans clé API.

Corrections :
- next.config.ts : ajout de cleanDistDir: true pour forcer la suppression
  des fichiers .next orphelins à chaque build
- package.json : suppression des dépendances non utilisées héritées de
  l'ancienne version (sanity, @sanity/*, stripe, @stripe/*, @supabase/*)
- package-lock.json : supprimé (sera régénéré proprement par npm install)

https://claude.ai/code/session_01Uec4iHjcPwB1pU41idWEdF
2026-02-27 18:04:16 +00:00
Claude
800a9c08b4 feat(upload): optimisation automatique WebP avec Sharp
- Installe sharp pour le traitement d'image côté serveur
- Conversion automatique de tout upload en WebP (meilleur ratio qualité/web)
- Auto-rotation basée sur l'orientation EXIF (corrige les photos de téléphone)
- Strip de toutes les métadonnées personnelles (GPS, appareil, EXIF)
- Compression adaptative par paliers (q82 → q72 → q62 → q50) pour viser ≤ 1 Mo
- Augmentation de la limite brute à 20 Mo (avant optimisation)
- Métadonnées Supabase Storage : Content-Type + Cache-Control 1 an
- UI : stats d'optimisation affichées après upload (ex: "2400 Ko → 680 Ko (WebP q82)")
- Mise à jour du texte d'aide dans l'admin images

https://claude.ai/code/session_01PzA98VhLMmsHpzs7gnLHGs
2026-02-21 09:17:39 +00:00
Claude
6840d2eebf fix: install sanity v3 Studio + fix config for deploy
Add sanity@3.99 and @sanity/vision as dev deps so that structureTool
resolves correctly when running sanity deploy.

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-15 18:08:19 +00:00
Claude
bca3745603 feat: pivot complet - agence web artisans BTP Nord + Sanity CMS
Transformation complète du site HookLab de formation TikTok Shop
vers une landing page haute conversion pour agence web locale ciblant
les artisans du bâtiment dans le Nord (Douai, Orchies, Valenciennes).

- Nouveau design system : bleu nuit/orange sur fond clair (mobile-first)
- Hero avec promesse artisan + CTA orange "Réserver mon Audit"
- Section "Le Système" (3 étapes : Trouvé, Choisi, Contacté)
- Portfolio connecté à Sanity.io (fallback data intégré)
- Section "Qui suis-je" avec carte OpenStreetMap interactive
- FAQ orientée artisans avec JSON-LD pour Google
- Formulaire contact audit gratuit
- SEO local : 12 keywords artisans, JSON-LD LocalBusiness
- Sanity.io schemas (portfolio, siteSettings) + client conditionnel
- Accessibilité : skip-to-content, focus-visible, aria-labels

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-15 12:50:52 +00:00
Claude
5ffb4fe32e fix: remove @supabase/ssr entirely to fix MIDDLEWARE_INVOCATION_FAILED
@supabase/ssr uses __dirname internally which crashes in Vercel's Edge
runtime, causing MIDDLEWARE_INVOCATION_FAILED even without a middleware
file. Replaced with @supabase/supabase-js directly:
- Server client: manual cookie-based session restoration
- Browser client: direct createClient from supabase-js
- Admin client: already using supabase-js

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-08 19:30:07 +00:00
Claude
d713f7f5ef fix: downgrade Next.js 16 to 15 for Vercel deployment compatibility
Next.js 16.1.6 is not yet fully supported by Vercel's build system,
causing 404 on all routes. Downgraded to Next.js 15.5.12 + React 18,
fixed ESLint config, TypeScript config, and lint errors.

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-08 14:28:57 +00:00
Claude
41e686c560 feat: complete HookLab MVP - TikTok Shop coaching platform
Full-stack Next.js 15 application with:
- Landing page with marketing components (Hero, Testimonials, Pricing, FAQ)
- Multi-step candidature form with API route
- Stripe Checkout integration (subscription + webhooks)
- Supabase Auth (login/register) with middleware protection
- Dashboard with progress tracking and module system
- Formations pages with completion tracking
- Profile management with password change
- Database schema with RLS policies
- Resend email integration for transactional emails

Stack: Next.js 15, TypeScript, Tailwind CSS v4, Supabase, Stripe, Resend

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-08 12:39:18 +00:00