rubis/apps/web/.env.development
ordinarthur 3fc3a7456a
Some checks failed
Build & Deploy Web / build-and-deploy (push) Has been cancelled
Build & Deploy API / build-and-deploy (push) Successful in 2m30s
Build & Deploy Landing / build-and-deploy (push) Successful in 1m31s
feat(web): instrumentation PostHog (analytics + nginx proxy)
Setup PostHog côté SPA — pageviews TanStack Router + 10 events business
(signup, login SSO, upload facture, émission/brouillon facture native,
marquer payée, lancer relance, plan créé, checkout Stripe). PostHogProvider
dans __root.tsx, identify sur auth, proxy nginx /ingest/* → eu.i.posthog.com
pour contourner les adblockers. Token bake via build-arg CI
(POSTHOG_PROJECT_TOKEN, à ajouter côté Gitea Secrets).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-15 17:21:59 +02:00

11 lines
666 B
Plaintext

VITE_API_URL=http://localhost:3333
VITE_PUBLIC_LANDING_URL=http://localhost:8080
VITE_USE_MOCKS=false
# PostHog — coller le token "phc_..." du projet (Project settings > Project API key).
VITE_PUBLIC_POSTHOG_PROJECT_TOKEN=phc_yPtTBc6cXyTS8mQVYbYze5fDoRWHD3Cy5iRdn9AR56x8
VITE_PUBLIC_POSTHOG_HOST=https://eu.posthog.com
# Sentry — DSN PUBLIC (peut être commit, c'est by-design dans @sentry/react)
VITE_SENTRY_DSN_WEB=https://2e62d7ef1a5aad166d6e0ec9a6e31580@o4511353951354880.ingest.de.sentry.io/4511353959874640
# VITE_APP_VERSION : injecté par le CI (sha git court) ou via vite.config.ts
# en dev. Pas de $(...) ici — Vite n'évalue pas le shell dans .env.