Skip to content

Add deployment preview environments for PRs #193

Description

@Akatenvictor

What

Configure automatic deployment preview environments for every pull request so reviewers can test changes in a live environment before merging.

Why

Code review alone can't catch all issues. Preview environments let reviewers interact with the actual application, test features, and verify changes work correctly before approving PRs.

Scope

In scope:

  • Configure Vercel, Netlify, or similar for PR preview deployments
  • Each PR gets a unique preview URL
  • Preview environment uses development API endpoints
  • Preview URL is posted as a PR comment automatically
  • Environment variables are managed per-environment

Out of scope:

  • Production deployment pipeline
  • Custom domain configuration
  • Database seeding for previews
  • Multi-region deployment

Acceptance Criteria

  • Preview URL generated for each PR
  • Preview URL is posted as PR comment
  • Preview uses development API endpoints
  • Preview deploys automatically on PR creation/update
  • Preview is destroyed when PR is closed/merged
  • Environment variables are correctly configured

Technical Context

  • Check if the project already has Vercel/Netlify integration
  • app/next.config.js for environment-specific config
  • GitHub Actions or platform-native integration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions