Removed invalid secret references from vercel.json. Environment variables must be configured in the Vercel Dashboard, not in the config file.
- Visit: https://vercel.com/dashboard
- Click your project:
infinova-hackathon - Go to Settings tab
In the left sidebar, click Environment Variables
For Production deployment:
| Variable | Value | Example |
|---|---|---|
REACT_APP_BACKEND_URL |
Your backend API URL | https://invoice-api.herokuapp.com |
REACT_APP_NETWORK |
Algorand network | testnet or mainnet |
Click "Add" for each variable, select environment (Production), and save.
You need to deploy your backend first. Choose one option:
npm install -g heroku
heroku login
heroku create invoice-financing-api
heroku config:set NODE_ENV=production
heroku config:set ALGOD_SERVER=https://testnet-api.algonode.cloud
heroku config:set ALGOD_PORT=443
git push heroku mainYour backend URL will be: https://invoice-financing-api.herokuapp.com
npm install -g @railway/cli
railway login
railway init
railway upYour backend URL will be shown in the Railway dashboard.
Deploy your backend and note the URL.
Once environment variables are set:
- Go to Vercel Dashboard → Deployments
- Click on the latest failed deployment
- Click Redeploy button
- Wait for build to complete
Or simply push code to GitHub:
git add .
git commit -m "Fix vercel config and set env vars"
git push origin mainOnce deployment is successful:
- Visit: https://infinova-hackathon.vercel.app
- Open browser Developer Tools (F12)
- Check Console for any errors
- Try creating an invoice
frontend/.env.local
REACT_APP_BACKEND_URL=http://localhost:3001
REACT_APP_NETWORK=testnet
Vercel Dashboard → Environment Variables
REACT_APP_BACKEND_URL=https://your-backend-api.com
REACT_APP_NETWORK=testnet
- All environment variables added in Vercel dashboard
- No typos in variable names (case-sensitive!)
- Variable values don't have quotes or extra spaces
- Both
REACT_APP_BACKEND_URLandREACT_APP_NETWORKare set
- Backend is deployed and running
- CORS enabled on backend for your Vercel domain
-
REACT_APP_BACKEND_URLpoints to correct backend - Backend API health check works:
GET /api/health
-
vercel.jsonhas correct rewrites section - Delete
.vercel/folder and redeploy - Check that
frontend/vercel.jsonis also configured
# 1. Deploy backend first
cd backend
npm install
heroku create invoice-api
git push heroku main
# Note the URL: https://invoice-api.herokuapp.com
# 2. Update Vercel env vars with backend URL
# Visit: https://vercel.com/dashboard → Settings → Environment Variables
# Add: REACT_APP_BACKEND_URL=https://invoice-api.herokuapp.com
# 3. Redeploy frontend
# Either:
# - Click Redeploy on Vercel dashboard
# OR
# - Push to GitHub:
git add .
git commit -m "Deploy with backend URL"
git push origin main- Vercel Docs: https://vercel.com/docs
- Build issues: Check Vercel Deployments tab for logs
- Contact: deepthishreyak@gmail.com