Archon/archon-ui-main/src
Luis Erlacher a6b9640738 fix: Configure Vite to load environment variables from root directory
Fixes authentication environment variable loading by properly configuring Vite's envDir to read from the project root instead of the archon-ui-main directory.

Changes:
- Configure vite.config.ts with envDir pointing to parent directory
- Add explicit VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY to .env
- Create vite-env.d.ts for TypeScript environment variable types
- Add debug logging to supabaseClient.ts for troubleshooting
- Update .env.example with proper Vite variable configuration
- Update AUTHENTICATION_SETUP.md with corrected setup instructions

Technical details:
- Vite's loadEnv() only loads vars for config use, not client injection
- envDir config is required to tell Vite where to find .env for client code
- Variables must be explicitly defined (Vite doesn't expand ${VAR} syntax)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 18:07:02 -03:00
..
components refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
config feat: Universal clipboard utility with improved copy functionality (#663) 2025-09-18 10:04:46 -07:00
contexts feat: TanStack Query Migration Phase 3 - Knowledge Base Feature (#605) 2025-09-12 16:45:18 +03:00
features fix: Configure Vite to load environment variables from root directory 2025-11-16 18:07:02 -03:00
hooks feat: TanStack Query Migration Phase 3 - Knowledge Base Feature (#605) 2025-09-12 16:45:18 +03:00
lib POC: TanStack Query POC implementation (#567) 2025-09-05 11:30:05 +03:00
pages feat: Add Supabase authentication with login/signup pages 2025-11-15 04:13:17 +00:00
services feat: Ollama Integration with Separate LLM/Embedding Model Support (#643) 2025-09-15 06:38:02 -07:00
styles The New Archon (Beta) - The Operating System for AI Coding Assistants! 2025-08-13 07:58:24 -05:00
utils POC: TanStack Query POC implementation (#567) 2025-09-05 11:30:05 +03:00
App.tsx feat: Add Supabase authentication with login/signup pages 2025-11-15 04:13:17 +00:00
env.d.ts The New Archon (Beta) - The Operating System for AI Coding Assistants! 2025-08-13 07:58:24 -05:00
index.css feat: TanStack Query Migration Phase 2 - Cleanup and Test Reorganization (#588) 2025-09-06 13:43:53 +03:00
index.tsx The New Archon (Beta) - The Operating System for AI Coding Assistants! 2025-08-13 07:58:24 -05:00
vite-env.d.ts fix: Configure Vite to load environment variables from root directory 2025-11-16 18:07:02 -03:00