Skip to content

fix(api): apply migrations in staging - #258

Draft
ripgrim wants to merge 7 commits into
mainfrom
codex/vercel-staging
Draft

ripgrim wants to merge 7 commits into
mainfrom
codex/vercel-staging

Conversation

@ripgrim

@ripgrim ripgrim commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Apply database migrations during Vercel staging builds.

Problem

The staging environment uses an isolated Neon database. The API build skips migrations outside production, so staging can run outdated schemas.

Solution

Run migrations for production and staging deployments. Keep other previews migration-free. Document the main-to-staging and release-to-production flow.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
crm-agent Ready Ready Preview Oct 23, 2026 8:02pm UTC
crm-api (staging) Ready Ready Preview Oct 23, 2026 8:02pm UTC
crm-api Ready Ready Preview Oct 23, 2026 8:02pm UTC
crm-app Ready Ready Preview Oct 23, 2026 8:02pm UTC

Request Review

This branch was successfully deployed

4 active (1 outdated) deployments
Preview – crm-agent — ceaeb27d Deployed Oct 23, 2026 by vercel[bot]
Preview – crm-app — ceaeb27d Deployed Oct 23, 2026 by vercel[bot]
Preview – crm-api — ceaeb27d Deployed Oct 23, 2026 by vercel[bot]
staging – crm-api — b7c19dc4 Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant