Skip to content

Prisma Postgres guide is outdated #14605

Description

@ArmandPhilippot

📚 Subject area/topic

Backend guide

📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/guides/backend/prisma-postgres/

📋 Description of content that is out-of-date or incorrect

It seems the Prisma Postgres guide in Astro Docs is using Prisma v7 (if not v6?). The default Prisma version is now 8.

When following the "Install dependencies and initialize Prisma" section, we start getting errors:

npx prisma init --db --output ./generated

✘ [CLI.INVALID_ARGUMENTS] No flag registered for --db, did you mean --yes?

The command is no longer available in v8, only in Prisma v7.

A quick fix could be to add "Prisma 7" to the prerequisites and pinning the version when installing the packages but... Prisma v8 is currently a release candidate and will reach the "final release" status in October 2026. This means Prisma v7 will only be supported for the next 18 months after the v8 release.

So, a better fix would be to check and update the guide so users can follow it with the latest Prisma version. Any help is appreciated.

The Prisma guide might be a good starting point to update our guide: https://www.prisma.io/docs/guides/frameworks/astro
(looking at their GitHub repo, this seems maintained/up-to-date: https://github.com/prisma/web/commits/main/apps/docs/content/docs/guides/frameworks/astro.mdx)

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions