riseup-squad18/.env.example
Fernando Pirichowski Aguiar 389a191f20 fix: corrige persistência de avatar, agendamento de consulta e download de PDF
- Avatar do paciente agora persiste após reload (adiciona timestamp para evitar cache)
- Agendamento usa patient_id correto ao invés de user_id
- Botão de download de PDF desbloqueado com logs detalhados
2025-11-15 08:36:41 -03:00

53 lines
1.9 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ⚠️ ESTE ARQUIVO É APENAS UM EXEMPLO
# Renomeie para `.env` e configure as variáveis necessárias
# NUNCA commite o arquivo .env com valores reais!
# ===========================================
# FRONTEND (VITE) - Não precisa mais!
# ===========================================
# O frontend NÃO acessa o Supabase diretamente
# Todas as chamadas vão para as Netlify Functions
# Portanto, NÃO precisa de VITE_SUPABASE_* aqui
# ===========================================
# NETLIFY FUNCTIONS (Backend)
# ===========================================
# Configure estas variáveis em:
# • Local: arquivo .env na raiz (opcional, Netlify Dev já injeta)
# • Produção: Netlify Dashboard → Site Settings → Environment Variables
# Supabase - OBRIGATÓRIAS
SUPABASE_URL=https://yuanqfswhberkoevtmfr.supabase.co
SUPABASE_ANON_KEY=sua-chave-aqui
# MongoDB - OPCIONAL (se você usa)
MONGODB_URI=mongodb+srv://usuario:senha@cluster.mongodb.net/database
# SMS API - OPCIONAL (se você usa envio de SMS)
SMS_API_KEY=sua-chave-sms-aqui
# ===========================================
# NOTAS IMPORTANTES
# ===========================================
#
# 1. DESENVOLVIMENTO LOCAL:
# - As Netlify Functions pegam variáveis do Netlify Dev
# - Você pode criar um .env na raiz, mas não é obrigatório
#
# 2. PRODUÇÃO (Netlify):
# ⚠️ OBRIGATÓRIO: Configure em Site Settings → Environment Variables
# - SUPABASE_URL
# - SUPABASE_ANON_KEY
# - Outras variáveis que você usa
# - Após adicionar, faça um novo deploy!
#
# 3. SEGURANÇA:
# ✅ Use apenas SUPABASE_ANON_KEY (nunca service_role_key)
# ✅ Adicione .env no .gitignore
# ✅ Configure CORS no Supabase para seu domínio Netlify
# ❌ NUNCA exponha chaves secretas no frontend
#
# 4. ARQUITETURA:
# Frontend → Netlify Functions → Supabase
# (A chave do Supabase fica protegida nas Functions)