VITE_PUBLIC_POSTHOG_KEY and VITE_PUBLIC_POSTHOG_HOST must be available at build time for Vite to bake them into the JS bundle. Without ARG/ENV in the Dockerfile, Railway env vars are only available at runtime which is too late for Vite's import.meta.env substitution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.0 KiB
1.0 KiB