amazonaffected
amazonaffected
NNuxt
Created by amazonaffected on 10/15/2024 in #❓・help
Nuxt-auth causing 500 Server Error due to invalid url passed to `new URL`.
Perfect!
6 replies
NNuxt
Created by amazonaffected on 10/15/2024 in #❓・help
Nuxt-auth causing 500 Server Error due to invalid url passed to `new URL`.
Thanks a lot for clarifying how this works. Is my understanding correct that npx nuxi upgrade -f will still upgrade non-root dependencies even if I'm already running latest Nuxt version? Because that was my case (I created the project around 2 weeks ago), because this isn't mentioned in the documentation. Regardless, I'd still give it a shot next time I encounter a similar issue.
6 replies
NNuxt
Created by amazonaffected on 10/15/2024 in #❓・help
Nuxt-auth causing 500 Server Error due to invalid url passed to `new URL`.
No description
6 replies
NNuxt
Created by amazonaffected on 10/3/2024 in #❓・help
Prisma Studio asks to be installed in Nuxt DevTools with each reload?
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
3 replies
NNuxt
Created by amazonaffected on 10/3/2024 in #❓・help
Prisma Studio asks to be installed in Nuxt DevTools with each reload?
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,
},
})
3 replies