Skip to content

Dev workspace setup: SETUP.md + token-less local build (PRO-14)#29

Open
huntsyea wants to merge 2 commits into
mainfrom
chore/dev-workspace-setup-pro14
Open

Dev workspace setup: SETUP.md + token-less local build (PRO-14)#29
huntsyea wants to merge 2 commits into
mainfrom
chore/dev-workspace-setup-pro14

Conversation

@huntsyea

Copy link
Copy Markdown
Owner

Summary

Stands up classical-virtues as a working dev workspace and documents onboarding (PRO-14). No secrets are committed.

Verification (all run locally)

Step Result
pnpm install ✅ clean, no errors — pnpm 11.7.0, Node 24.16.0
pnpm run lint ✅ passes, zero warnings
pnpm run build:local (next build) ✅ compiles, 9/9 static pages — degrades gracefully without a token
pnpm run build (basehub && next build) ⚠️ fails token-less at the basehub codegen step (🔴 Token not found) — expected; succeeds where BASEHUB_TOKEN is set (CI/Vercel)
pnpm run dev next dev boots; /, /stories, /about → 200, /api/stories[] (graceful degradation). basehub dev logs a token warning but is backgrounded and non-blocking

Changes

  • SETUP.md (new) — concise verified quickstart: prerequisites, install, env-var sourcing, commands, graceful degradation, add-a-virtue workflow, Vercel link notes.
  • package.json — add build:local (next build) so the app builds without a BASEHUB_TOKEN using the committed basehub-types.d.ts.
  • .env.example — drop NODE_ENV (Next.js manages it and warns when set manually); document Basehub token/secret sourcing inline.
  • README.md — point to SETUP.md; correct stale Node 18 prerequisite.

Notes for reviewers

  • The default build script intentionally keeps basehub && next build (matches the Vercel build command). build:local is the token-less escape hatch.
  • No Vercel project changes made — linking + env setup is documented only (no .vercel/ dir exists).
  • Secrets/access the team still needs to provision are listed on PRO-14.

🤖 Generated with Claude Code

Co-Authored-By: Paperclip noreply@paperclip.ing

Stand up the contributor onboarding for the dev workspace (PRO-14):

- Add SETUP.md: verified prerequisites (Node >=20.9, pnpm), install, env
  var sourcing (Basehub token/webhook secret), commands, graceful-
  degradation behavior, the add-a-virtue workflow, and Vercel link notes.
- Add `build:local` script (`next build`) so the app builds without a
  BASEHUB_TOKEN using the committed basehub-types.d.ts. The default
  `basehub && next build` still hard-fails token-less at the codegen step;
  documented in SETUP.md.
- Drop NODE_ENV from .env.example (Next.js manages it and warns when set
  manually) and document Basehub token sourcing inline.
- README: point to SETUP.md and correct stale Node 18 / prerequisites.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@linear

linear Bot commented Jun 19, 2026

Copy link
Copy Markdown

PRO-14

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
classical-virtues Ready Ready Preview, Comment Jun 19, 2026 12:20am

Request Review

The dudesdesign/classical-virtues Vercel project already holds BASEHUB_TOKEN,
BASEHUB_WEBHOOK_SECRET, and BLOB_READ_WRITE_TOKEN. Document linking + env pull
as the fastest way to populate a git-ignored .env.local, verified to make the
full `basehub && next build` succeed and live stories render.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
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