Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
51 lines (41 loc) · 2.23 KB
/
Copy path.env.example
File metadata and controls
51 lines (41 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# PostHog Analytics (browser)
VITE_POSTHOG_KEY=your_posthog_project_token_here
VITE_POSTHOG_HOST=https://your-posthog-host.example.com
# API Configuration
VITE_API_URL=https://api.example.com/v1
# NeonDB (Postgres serverless) - solo para Netlify Functions, NUNCA con prefijo VITE_
NEON_DATABASE_URL=postgresql://user:password@ep-example.aws.neon.tech/neondb?sslmode=require
# MercadoPago Configuration
VITE_MERCADOPAGO_PUBLIC_KEY=your_mercadopago_public_key_here
MERCADOPAGO_ACCESS_TOKEN=your_mercadopago_access_token_here
# Webhook secret (configurar en panel de MercadoPago → Tu aplicación → Webhooks)
MERCADOPAGO_WEBHOOK_SECRET=tu_webhook_secret_aqui
# Identidad devsChile — soy como proveedor de auth (authorize → exchange)
# VITE_SOY_URL: origen de soy que ve el BROWSER para iniciar el authorize
# (default https://soy.devschile.cl); cámbialo para apuntar a un soy de staging.
VITE_SOY_URL=https://soy.devschile.cl
# El browser solo ve la URL soy; el secreto lo usa la función soy-exchange.
# SOY_CLIENT_SECRET debe ser el MISMO que NUXT_OAUTH_CLIENTS_TIENDA_CLIENT_SECRET en soy.
SOY_MEMBERS_API_URL=https://soy.devschile.cl
SOY_CLIENT_SECRET=tu_client_secret_aqui
MEMBER_DISCOUNT_PERCENT=10
# Email (Resend para testing, Mailgun para producción)
EMAIL_PROVIDER=resend # resend | mailgun
RESEND_API_KEY=re_xxxx # si EMAIL_PROVIDER=resend
FROM_EMAIL=tienda@andalaosa.cl # dominio verificado en Resend (testing) o Mailgun (prod)
# Mailgun (solo producción)
MAILGUN_API_KEY=key-xxxx
MAILGUN_DOMAIN=mg.tienda.devschile.cl
MAILGUN_URL=https://api.mailgun.net # o https://api.eu.mailgun.net si Europa
# Admin Panel (JWT sin dependencias externas)
ADMIN_EMAIL=admin@devschile.cl
ADMIN_PASSWORD=contraseña-segura-aqui
ADMIN_JWT_SECRET=string-aleatorio-64-chars-aqui
ALLOWED_ORIGINS=https://tienda.devschile.cl,https://tienda-devschile.netlify.app,http://localhost:3000
SITE_URL=http://localhost:3000
NODE_ENV=production
# culpeo (CRM devsChile) — Bearer token de la API de solo lectura /culpeo-api/*
# Generar con: openssl rand -hex 32. Sin esta variable el endpoint responde 401.
CULPEO_API_TOKEN=reemplazar-por-openssl-rand-hex-32
# Uploadthing - image upload
UPLOADTHING_TOKEN=tu_token_aqui # dashboard.uploadthing.com → API Keys