Skip to content

Document previewing an app that ships a build artifact, and Next.js previews - #829

Open
dawsontoth wants to merge 3 commits into
mainfrom
docs/nextjs-previews
Open

dawsontoth wants to merge 3 commits into
mainfrom
docs/nextjs-previews

Conversation

@dawsontoth

@dawsontoth dawsontoth commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
An owl librarian adds a page to a guidebook with arrows pointing to two other books on the shelf

⊙ Problem

The CI guide's "Applications that need a build" offered only the published-package route, and said nothing about previewing a Next.js app, which can't build on the cluster. And before harper v5.4.2, a bundled server import of harper in a branched preview reached the cluster's own databases.

💡 Solution

In learn/developers/deploying-from-ci.mdx, "Applications that need a build" adds the workflow-artifact route and a Next.js paragraph that links HarperFast/nextjs-example and the plugin's preview guide instead of copying them. "Shared or branched data" tells readers to use the bare tables and databases globals in bundled server code (harper#4594, harper#4593).

✅ Verification

  • npm run build passed on the first commit; prettier --check clean on each.
  • Outside review: 3 families over two rounds; the second round's points (successful run, this site's workflow, harper#4593) are in the last commit.

Merge after these, which the new text links or describes:

Depends-on: HarperFast/nextjs#91
Depends-on: HarperFast/harper#4594

HarperFast/nextjs-example's preview workflows, which the new text links, are on its main as d7a16af: #6 landed by rebase merge, but a GitHub outage interrupted the merge before it was recorded, so #6 shows as closed.

The v5.4.2 badge assumes harper#4594 ships in 5.4.2 (milestone v5.4); confirm against the tag before merging.

🤖 Generated with Claude Code

Related PRs: none found

Review-Coverage: authored=claude; ran=gemini,cursor-composer,codex; adjudicated=domain; declined=cursor-grok,muse; rounds=2; full=1 @ f3dbb03

Review-Attention: study ~9m (decisions: link-out-vs-inline-recipe, version-caveat-in-learn, globals-as-the-rule; raised: open major) @ f3dbb03

dawsontoth and others added 3 commits November 24, 2026 16:01
…reviews

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…globals for bundled code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…flow, and name harper#4593

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

docs-site preview: https://docs-nextjs-previews.app.preview.harper-documentation.harperfabric.com/

Commit f3dbb03, workflow run. It updates on each push and is removed when this PR closes.

@dawsontoth
dawsontoth marked this pull request as ready for review November 24, 2026 22:06
@dawsontoth
dawsontoth requested a review from a team as a code owner November 24, 2026 22:06

This branch was successfully deployed

2 active deployments
docs-site-preview — f3dbb03e Deployed Nov 24, 2026 by github-actions[bot]
preview — f3dbb03e Deployed Nov 24, 2026 by dawsontoth via deploy #31
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.

2 participants