← Back to Pull requests

docs(guides): the SvelteKit guide deploys to Prisma Compute #8892

Closed
unknown closed this pull request without merging on Nov 21, 2026 00:35 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 21:32 UTC
Author

The svelte template of create-prisma deploys to Prisma Compute. One real deploy, run for this pull request:

$ npm run build
$ npx prisma deploy
my-app
├─ database   postgres-database db_abc123
└─ app        compute-service cps_abc123
              https://xyz.ewr.prisma.build
✔ Deployed my-app to production in 1m 13s.

$ curl -s https://xyz.ewr.prisma.build | grep -o '[a-z]*@prisma.io' | sort -u
alice@prisma.io
bob@prisma.io
carol@prisma.io

Until now the SvelteKit guide stopped at a local run, and three places on the site said SvelteKit could not be deployed. Nobody had tried it. This pull request makes the site say what the deploy showed.

What changes

  • guides/frameworks/sveltekit.mdx gains a "Deploy to Prisma Compute" section with the output above, in the same shape as the other framework guides. "Change the schema" now says a redeploy applies the new migration before the new version starts; the deploy log of a second deploy with an added column confirmed that order. The agent prompt gains a deploy step.

  • (index)/index.mdx and (index)/prisma-orm/index.mdx no longer exclude SvelteKit from deploying; Deno stays excluded. The prompt for porting an existing app names what a SvelteKit service needs: @sveltejs/adapter-node and the directory form of the node build, because the single-file form copies only build/index.js, which re-exports from files that would be missing.

  • (index)/full-stack-tutorial.mdx no longer says SvelteKit apps do not deploy, and says what an existing SvelteKit app needs.

  • The MongoDB note on eight framework guides now says the local Composer run needs MONGODB_URL too, that later deploys keep the value the first deploy stored, and how to change it with prisma project env update.

  • Nine guides shared one paragraph about re-running a deploy that used the terms "hosted state" and "converges the project to your module". It is now two paragraphs. The first says what the first deploy creates and that deploying again updates the same project. The second says the deploy finds the project by the module's name, so each app needs its own name, and what to do about HostedStateBootstrapError. The old example for that error, a project "left behind by a different checkout", was wrong: deploy state is stored on the platform, and a fresh checkout deploys.
  • How it was checked

  • The deploy, the curl check, a schema change with a redeploy, and the deletion of the test project were run with create-prisma 0.14.8.

  • Four rounds of independent reader review covered every commit; the last round found nothing. Facts added along the way were checked against the create-prisma 0.14.8 templates and the prisma and @prisma/composer sources.

  • Not tested by a deploy: two apps deployed under one module name. The guides state only what the source shows, that both deploys go to the same project.

  • pnpm lint:links, pnpm lint:versions and pnpm lint:spellcheck pass.
  • Not in this pull request

    Three defects in the svelte template are recorded for create-prisma: its .gitignore does not ignore build/ or .svelte-kit/, its tsconfig.json makes SvelteKit print a tsconfig_invalid warning, and it pins prisma one release behind latest.

    Agent: gagarin-12

    🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Documentation
    Added SvelteKit deployment guidance, including Node adapter setup, build configuration, migration behavior, and live-app verification.
    Clarified that MONGODB_URL is needed for local runs and deployments, how its value is stored and updated, and when updates take effect.
    Explained how module names and --name determine which project deployments update, and how to address hosted-state verification errors.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 500 lines (+375 / -125) across 6 files Reviewer: wmadden-electric Review duration: 183m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.71) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.71 · 500 lines diff across 6 files
    0.71
    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.372
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.071
    Real PR Conversation Timeline
    1 comments
    "Review active on #8892"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 70.7% (HIGH) · Higher = larger blast radius
    70.7%
    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: 27.9% · Safe to merge
    27.9%
    Repository