-
-
Notifications
You must be signed in to change notification settings - Fork 2
Deprecate nuxt-prisma
until 31.01.2023 #6
Description
Describe the feature
We'll deprecate this nuxt-layer in favor of "natively" integrating prisma: Integrating it is quite easy and just requires a couple of files + the layers approach we chose here still has serious flaws:
- setting the prisma middleware precedence requires an extra impl to mess with layer order, see: Layers/Extends Support Tracker nuxt/nuxt#13367
- typing is broken / not correctly transpiled in some cases: Build failed "ERR_MODULE_NOT_FOUND" #5
pnpm
problems with layer at the moment: Project fails to build withnuxt-prisma
#4
These flaws are all serious / annoying and not easily resolved. Their overhead does not justify the existance of this small layer with just 2 files. So instead we integrated the necessary files and configuration directly into create-sidebase
. To use prisma with Nuxt 3 run:
# also works with `yarn`, `pnpm`
npm create sidebase@latest
Then select Merino
and then Prisma ORM
and you are good to go!
To properly deprecate this layer we will:
- start deprecation by updating the behavior of create-sidebase: feat: switch from prisma layer to "direct" prisma integration create-sidebase#5
- recommending create-sidebase to get started with projects that need prisma in the readme here.
- close all open issues with a notice and reference to this issue
- deprecate nuxt-prisma in
cheviot
(feat: deprecatenuxt-prisma
in favor of direct prisma integration sidebase#92) - do not show top level website navigation any longer (Remove
nuxt-prisma
from LP and modules navbar docs#87) - deprecate the repo on the 31.01.2023
Sorry for this (sad) information -> if you want to I can have a look at your setup to help you setup prisma correctly in your project ❤️ Just let me know here or on discord: https://discord.gg/NDDgQkcv3s
Additional information
No response