Vercel automatically builds and deploys a preview branch for each pull request. Some things to note:
- To test Google/Slack features (login, sending emails), you must manually configure Google Cloud and Slack to point to the preview branch URL.
- When the preview branch is first created, the database will be automatically seeded with sample data. After that, the database will continue attempting to apply migrations, but it will not clear/re-seed the database. If you want a clean slate on the preview branch without creating a new PR, then you can temporarily modify
build:preview
inapps/nextjs/package.json
to includenpm run db:reset
, commit/push to Github, and then after the Vercel build completes, you can commit/push a revert commit.
Vercel auto-deploys the application upon merging commits to main.