Commit Graph

3 Commits

Author SHA1 Message Date
L'électron rare 7787bed2e9 refactor: contact form delegates to mail-api
Replace nodemailer SMTP with HTTP fetch to mail-api
container (http://mail-api:3200/api/mail/send) which
already holds the Brevo SMTP creds. Single source of
truth for mail credentials, no duplication across
electron-rare-site and mail-api.

Drop nodemailer + @types/nodemailer from deps. Restore
npm ci in Dockerfile since the lock no longer drifts.

Override defaults via env: MAIL_API_URL, MAIL_FROM,
MAIL_TO. mail-api intra-Docker network reachable
because both services are on the traefik network.
2026-04-28 10:02:07 +02:00
L'électron rare 225bd1d457 feat: contact form via SMTP + 3D click links
Replace Frappe/Dolibarr API with direct SMTP send via
nodemailer. Form posts to local /api/submit-lead, no
external proxy on api.lelectronrare.fr (which was down
since Frappe was retired ~13 days ago).

Add onClick handler on BMU/I2C/MOSFET 3D meshes that
redirects to /contact/. Cursor pointer on hover for
affordance.

Switch Dockerfile from npm ci to npm install --no-audit
since package-lock will regen with nodemailer added.

Container env vars to configure:
  SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS
  MAIL_FROM (defaults to SMTP_USER)
  MAIL_TO (defaults to contact@lelectronrare.fr)
2026-04-28 09:39:40 +02:00
Electron Rare Bot 3f677718c6 ci: replace OVH FTP deploy with Cloudflare tunnel deploy via Photon 2026-03-19 16:21:44 +00:00