Skip to content

chore(ci): run Next.js production build - #528

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
abdulm5:chore/523-ci-next-build
Jul 27, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
abdulm5:chore/523-ci-next-build

Conversation

@abdulm5

@abdulm5 abdulm5 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • run the Next.js production build after Vitest in the existing web CI job
  • provide clearly fake Supabase and Stripe values for SDK clients initialized during build-time page-data collection
  • keep deployment secrets out of CI while catching Next.js-only server/client boundary and route compilation failures

The production build completes in about 19 seconds locally, so this change does not add .next/cache caching.

Related issue

Closes #523

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

Validation

  • yarn format:check
  • yarn lint
  • yarn typecheck
  • yarn test (47 tests)
  • yarn build with the workflow's placeholder environment
  • temporarily exported a synchronous function from a 'use server' module and confirmed next build fails with Server Actions must be async functions

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly the right shape — minimal step, clearly fake placeholders keeping real secrets out of CI, and verifying the 'use server' sync-export failure mode locally was a great touch. The build step passing in this PR's own run seals it. Thanks!

One thing: this is still marked as a draft — if it's complete on your end (it looks complete to me), hit "Ready for review" so it can be merged.

@abdulm5
abdulm5 marked this pull request as ready for review July 26, 2026 15:22
@gkhngyk
gkhngyk merged commit 45ec60e into ansvisor:main Jul 27, 2026
4 checks passed
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.

CI: add a next build step so 'use server' violations can't reach main

2 participants