Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions bimex-frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ VITE_LAUNCHTUBE_JWT=
# Get project ID at https://cloud.walletconnect.com
VITE_WALLETCONNECT_PROJECT_ID=c4f79cc821944d9680842e34466bfda0

# Indexer API URL (for faucet and data queries)
# Indexer REST (faucet, transparencia, casos de éxito)
VITE_API_URL=http://localhost:3001

# Indexer API (for SSE real-time updates)
# Indexer (SSE, IPFS upload proxy)
VITE_INDEXER_URL=http://localhost:3001

# Same-origin /api proxy (production or staging):
# 1. In vercel.json, add /api/:path* → https://<real-indexer-host>/:path* (never commit placeholder hosts).
# Staging is wired for bimex-staging.vercel.app → bimex-indexer-staging.vercel.app in vercel.json.
# 2. In Vercel env vars set:
# VITE_API_URL=/api
# VITE_INDEXER_URL=/api
# connect-src 'self' in CSP covers same-origin /api. SSE via Vercel proxy may hit connection duration limits.

# Supabase (for notification preferences)
VITE_SUPABASE_URL=https://<project>.supabase.co
VITE_SUPABASE_ANON_KEY=<anon_key>
Expand Down
9 changes: 8 additions & 1 deletion bimex-frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"rewrites": [
{
"source": "/api/:path*",
"has": [{ "type": "host", "value": "bimex-staging.vercel.app" }],
"destination": "https://bimex-indexer-staging.vercel.app/:path*"
},
{ "source": "/(.*)", "destination": "/index.html" }
],
"headers": [
{
"source": "/(.*)",
Expand Down
Loading