page:blueprints:developer tools:documentation site:next js

Developer Tools: Documentation Site Using Next.js

Summary

A documentation site blueprint for developer tools built with Next.js on Ample. Domain schema:

Public information includes versioned API reference and guides, SDK release notes, and status page links.

Workflow Steps

  1. Model the developer tools domain: Create the tables customer_workspaces, doc_versions, sdk_releases, customer_assets, state_transitions. Keep sensitive classes out of the schema.
  2. Workflow step 1: Model versioned documents with a state machine (draft, review, published) scoped to a product version.
  3. Workflow step 2: Publish assets for released versions to the CDN bucket.
  4. Workflow step 3: Serve only published versions publicly.
  5. Workflow step 4: Deploy and verify the version list and a published page.
  6. Deploy: Run ample deploy . --name --public --env S3_ENDPOINT=... --env S3_REGION=... --env S3_BUCKET=... --env S3_ACCESS_KEY_ID=... --env S3_SECRET_ACCESS_KEY=... --env CDN_PUBLIC_URL=... to deploy once and check the result.
  7. Verify: Run the pattern self-test(s) from the example (/p/relational-records) and your own acceptance checks for the developer tools workflow.

Technical Basis

Verified on Next.js: a workspace-scoped table, a state machine (draft to review to published) that rejects invalid transitions, and a cross-workspace read that returns nothing.

Limitation

Cost Estimate

Success Checks

Next Actions