Skip to content

docs(examples/next): expand README with setup, env vars, and feature test steps#15576

Open
Zawwarsami16 wants to merge 1 commit into
vercel:mainfrom
Zawwarsami16:docs/examples-next-readme
Open

docs(examples/next): expand README with setup, env vars, and feature test steps#15576
Zawwarsami16 wants to merge 1 commit into
vercel:mainfrom
Zawwarsami16:docs/examples-next-readme

Conversation

@Zawwarsami16
Copy link
Copy Markdown
Contributor

Closes #15563.

Why

The current examples/next/README.md is one line:

A minimal example to test persistence, SSR, and stream resume.

A new contributor coming to the example has to dig through package.json, .env.local.example, and app/api/chat/route.ts to figure out what env vars are needed, which model the example uses, how to run it, and how to actually exercise the three features (persistence, SSR, resumable streams). Issue #15563 asks for the missing setup steps.

What's in this PR

Expands the README with:

  • a short summary of what the example demonstrates and the three AI SDK features it stitches together
  • install + build steps from the monorepo root (pnpm install && pnpm build), matching the convention in other example READMEs (e.g. examples/express/README.md)
  • the required env var VERCEL_API_KEY (or VERCEL_OIDC_TOKEN when deployed on Vercel) so the AI Gateway call to openai/gpt-5-mini works, plus the optional ones (REDIS_URL for resumable streams, BLOB_READ_WRITE_TOKEN for attachment uploads) with links to provisioning docs
  • the pnpm dev command and the local dev URL (http://localhost:3000)
  • per-feature test instructions so a contributor can verify each path locally — refresh-to-test persistence, view-source to confirm SSR, second-tab to confirm resumable streams
  • Node.js (^22 || ^24 || ^26) and pnpm (10.x) version notes pulled from the root package.json

No code changes — README only.

Test plan

  • Read flow verified against current app/api/chat/route.ts (model name, env vars), .env.local.example (var list), root package.json (engines + packageManager).
  • Maintainer to confirm wording around AI Gateway language matches latest house style.

…test steps

Closes vercel#15563.

The existing README is one line. This adds:
- a short summary of what the example demonstrates (persistence, SSR, resumable streams)
- install + build steps from the monorepo root, matching the existing example conventions
- the required env var (VERCEL_API_KEY) and optional ones (REDIS_URL, BLOB_READ_WRITE_TOKEN), with links to provisioning docs
- the local dev URL
- per-feature test instructions so a contributor can verify each path locally
- Node.js and pnpm version notes pulled from the root package.json
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.

Improve documentation for running the examples/next project

1 participant