Prisma Studio asks to be installed in Nuxt DevTools with each reload?

Hello, I installed the nuxt prisma module and now every time I make changes to code it asks me:
Do you want to view and edit your data by installing Prisma Studio in Nuxt DevTools?
Do you want to view and edit your data by installing Prisma Studio in Nuxt DevTools?
And it doesn't seem to remember my previous answer to "Y" yes install. Is there a configuration I can set so that it automatically installs and never ask me?
1 Reply
amazonaffected
amazonaffectedOP2mo ago
I also tried this, but doesn't seem to fix it
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@sidebase/nuxt-auth',
'@prisma/nuxt',
'@nuxtjs/tailwindcss',
],
...
prisma: {
installStudio: true, // <-- this
},
tailwindcss: {
exposeConfig: true,
},
})
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@sidebase/nuxt-auth',
'@prisma/nuxt',
'@nuxtjs/tailwindcss',
],
...
prisma: {
installStudio: true, // <-- this
},
tailwindcss: {
exposeConfig: true,
},
})
Sooo, this seems to do it:
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@sidebase/nuxt-auth',
'@prisma/nuxt',
'@nuxtjs/tailwindcss',
],
...
prisma: {
autoSetupPrisma: process.env.NODE_ENV === 'development' ? true : undefined, // <-- this
},
tailwindcss: {
exposeConfig: true,
},
})
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@sidebase/nuxt-auth',
'@prisma/nuxt',
'@nuxtjs/tailwindcss',
],
...
prisma: {
autoSetupPrisma: process.env.NODE_ENV === 'development' ? true : undefined, // <-- this
},
tailwindcss: {
exposeConfig: true,
},
})
Idk if it's necessary to make the NODE_ENV check, but I figured it's safer
Want results from more Discord servers?
Add your server