
One missing env var replaced my entire site with 'Something went wrong'
Migrating from Vite to Next.js renamed every VITE_ env var to NEXT_PUBLIC_. The host still had the old names, so Firebase initialised with undefined keys, getAuth() threw at module scope, and because that module was imported by every page the ErrorBoundary replaced the whole site with 'Something went wrong'.
Read the write-up →