← Back to Pull requests

docs(guides): Vike guide with Prisma ORM, Prisma Postgres, and Prisma Compute #8929

Closed
unknown closed this pull request without merging on Nov 25, 2026 11:09 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 10:43 UTC
Author

Summary

Adds a Vike guide at /guides/frameworks/vike: Prisma ORM 8, Prisma Postgres, and a deploy to Prisma Compute. The Vike maintainer asked for the guide to live in our docs so that Vike's docs can link to it (vikejs/vike#3764).

Live app built from the guide: https://aw80ht086gwcnp09uxc2vjlb.ewr.prisma.build/todo

What the guide does

It persists the to-do page that Vike's scaffolder already ships. The reader runs npm create vike@latest -- --react --hono, adds Prisma ORM with orm init, and changes two scaffolded files: the +data hook reads to-dos and the Hono handler writes them. No new UI is needed.

The deploy needs no Vite adapter. Compute runs the server that vike build writes to dist/server/index.mjs. The guide adds service.ts, module.ts, and a composer section in prisma.config.ts, following the create-prisma SvelteKit template, so the deploy creates the database and applies migrations/.

It also covers the two things readers ask next: changing the schema (emit, plan, migrate, deploy) and environment variables (local .env, no DATABASE_URL on Compute, prisma project env add for the rest).

Changes

  • guides/frameworks/vike.mdx: the guide.

  • guides/frameworks/meta.json and guides/index.mdx: navigation entry and overview card.

  • public/img/technologies/vike.svg: the official logo from vikejs/vike (docs/assets/logo/vike.svg), unmodified. It is square and reads well on light and dark backgrounds. Like the SolidStart and React Router logos, it is not on the home page framework picker, which holds ten tiles.

  • cspell.json: Vike, vike, vikejs, scaffolder.
  • There is no Prisma ORM 7 version of this guide, so it has no "Using Prisma ORM 7?" note.

    Validation

    The guide was run twice against real infrastructure. I built it once by hand, then a clean-room run applied only the commands and code blocks from the page to a fresh scaffold. Every step passed without a fix.

  • Local: db init on a create-db database, write through POST /api/todo/create, read back on /todo, tsc --noEmit clean after every step.

  • prisma dev: built server against the local database, write and read.

  • Compute: first deploy, write and read on the live URL, then the schema change (done column) and a redeploy that kept the URL and the data.

  • Environment variable: GREETING set with project env add reached process.env after the next deploy.

  • Idle: after 10 minutes without traffic, the first read answered in 0.8 s and the first write in 0.45 s.

  • Docs: types:check, lint:links, lint:versions, lint:images, spellcheck on guides/, oxfmt --check, and the AI-signs prose check pass. The page and its .md route return 200 on the dev server.
  • Versions: Node.js 24.11.1, vike 0.4.270, vike-react 0.6.32, @vikejs/hono 0.4.1, hono 4.13.22, vite 8.3.8, prisma 8.0.0-rc.35, @prisma/orm-postgres 8.0.0-rc.25, @prisma/composer and @prisma/composer-prisma-cloud 0.40.0.

    Follow-ups

  • vikejs/vike#3764 links to this page, so the link works once this merges and deploys.

  • Test projects left in the Personal Organization workspace: my-vike-app (the live app above) and vike-prisma-app.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

  • Documentation

  • - Added a Vike guide covering application setup, Prisma ORM and database configuration, database-backed page reads and to-do creation, local development, migrations, and deployment to Prisma Compute.
    - Included guidance on environment variables, schema updates, common setup issues, and using coding agents with the scaffold.
    - Added the guide to the Frameworks listings.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 478 lines (+358 / -120) across 5 files Reviewer: ankur-arch Review duration: 26m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 478 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8929"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.8% (MEDIUM) · Higher = larger blast radius
    45.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%
    Repository