- Remove backend Medusa.js (TypeScript) e substitui pelo backend Go (saveinmed-performance-core) - Corrige testes auth.test.ts: alinha paths de API (v1/ sem barra inicial) e campo access_token - Corrige GroupedProductCard.test.tsx: ajusta distância formatada (toFixed) e troca userEvent por fireEvent com fakeTimers - Corrige AuthContext.test.tsx: usa vi.hoisted() para mocks e corrige parênteses no waitFor Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# ============================================
|
|
# SaveInMed Backend - Environment Variables
|
|
# ============================================
|
|
|
|
# Application Settings
|
|
APP_NAME=saveinmed-performance-core
|
|
BACKEND_PORT=8214
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgres://user:password@host:port/dbname?sslmode=disable
|
|
DATABASE_URL=postgres://user:password@host:port/dbname?sslmode=disable
|
|
ADMIN_NAME=Administrator
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_EMAIL=admin@saveinmed.com
|
|
ADMIN_PASSWORD=admin123
|
|
|
|
# JWT Authentication
|
|
JWT_SECRET=your-secret-key-here
|
|
JWT_EXPIRES_IN=24h
|
|
PASSWORD_PEPPER=your-password-pepper
|
|
|
|
# MercadoPago Payment Gateway
|
|
MERCADOPAGO_BASE_URL=https://api.mercadopago.com
|
|
MARKETPLACE_COMMISSION=2.5
|
|
|
|
# CORS Configuration
|
|
# Comma-separated list of allowed origins, use * for all
|
|
# Examples:
|
|
# CORS_ORIGINS=*
|
|
# CORS_ORIGINS=https://example.com
|
|
# CORS_ORIGINS=https://app.saveinmed.com,https://admin.saveinmed.com,http://localhost:3000
|
|
CORS_ORIGINS=*
|
|
|
|
# Swagger Configuration
|
|
# Host without scheme (ex: localhost:8214 or api.saveinmed.com)
|
|
BACKEND_HOST=localhost:8214
|
|
# Comma-separated list of schemes shown in Swagger UI selector
|
|
SWAGGER_SCHEMES=http,https
|
|
|
|
# Testing (Optional)
|
|
# SKIP_DB_TEST=1
|