I am struggling with the deployment of the Sparrow Reference Web Application.
Using Netlify, it fails with a next.js cannot be installed error, so I switched to Vercel.
The deployment works, but the site shows only:
An internal error occurred. If this problem persists, contact Blues Support.
The logs from Vercel say:
info - Loaded env from /var/task/.env.production.local
info - Loaded env from /var/task/.env
Connecting to database at postgres://postgres:somePassword@sparrow-postgresql-container:5432/postgres
and
Unknown error message code: Can't reach database server at `sparrow-postgresql-container`:`5432`
Please make sure your database server is running at `sparrow-postgresql-container`:`5432`.
In the .env file I left the postgresql settings as default:
# Sparrow Database (default is good for development)
APP_ID="sparrow-rak-app"
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=somePassword
POSTGRES_HOST=sparrow-postgresql-container
POSTGRES_PORT=5432
POSTGRES_DATABASE=postgres
DATABASE_URL="postgres://$POSTGRES_USERNAME:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DATABASE"
I am sure I am missing something, but not sure what.