Facebook Login for Business (the only Login product a Business-type
app gets, needed here for Page/Messenger/Instagram) has no
email/public_profile permission to request, only business asset
permissions - there is no config_id that can resolve a user's
identity. credentials() now always returns null for facebook so the
button stays hidden; Google login is unaffected.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Storage now picks Vercel Blob when a store is connected (BLOB_STORE_ID
or BLOB_READ_WRITE_TOKEN), falling back to local disk for self-hosted
runs. Adds vercel.json cron schedule for the existing cron routes
(ig-publisher capped to once/day on Hobby plan).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Only cron-runner.mjs was copied, so scripts/create-user.mjs (needed to
bootstrap the first login account on a fresh deploy) was missing from
the container entirely.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Prisma 7 reads datasource.url from prisma.config.ts, not schema.prisma.
The final Docker stage copied prisma/ but not the root config file, so
`prisma migrate deploy` always failed with "datasource.url property is
required" regardless of DATABASE_URL being set correctly.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds docker-compose.yml so Coolify can provision Postgres and generate
DATABASE_URL/SESSION_SECRET/TOKEN_ENCRYPTION_KEY/CRON_SECRET itself via
its SERVICE_PASSWORD_* magic variables, instead of an operator typing
them into the dashboard by hand.
TOKEN_ENCRYPTION_KEY now derives its AES-256 key via SHA-256 instead of
requiring exactly 32 raw bytes in base64, so a generated magic variable
works regardless of its format.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The Coolify build server has no outbound access to fonts.googleapis.com,
which crashed `npm run build` inside the Docker build with a next/font
google-loader TypeError. Switch to next/font/local with the variable TTF
fetched from the Google Fonts GitHub repo (same OFL-licensed font, no
build-time network dependency).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace Vercel-specific infra (Cron, Blob) with self-hosted equivalents
for deployment to Coolify: in-container cron scheduler
(scripts/cron-runner.mjs) and disk-based upload storage served via
/api/uploads/[...path]. Add Dockerfile, .dockerignore, and /api/health
for container health checks.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>