Filip
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Thanks again @dexie
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Ok, I created an issue and linked this thread: https://github.com/wasp-lang/wasp/issues/2433
25 replies
WWasp
•Created by ComputO on 12/27/2024 in #🙋questions
Is there a way to reduce the session expiry instead of the default 1 month .
Here's the issue: https://github.com/wasp-lang/wasp/issues/2433
10 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Sorry for the pain, this is very inconvenient
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
I'll create an issue for customizing Prisma right away
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Unfortunately, Wasp overrites this file on every build so you'd have to somehow ensure to patch it each time
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
It's not elegant at all, but if you go into
node_modules/wasp/server/dbClient.ts
and edit the code there, you'll get what you want25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
But you could monkey patch it
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Ah crap, yeah, we don't support extending the Prisma client just yet
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Let me think about it for a minute, see what we can do
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Yes, that might be tricky
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
You'd be extending the client in the server setup function but then wouldn't have a way to use it in your operations
25 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
Oh, I think I understand the issue
25 replies
WWasp
•Created by ComputO on 12/27/2024 in #🙋questions
Is there a way to reduce the session expiry instead of the default 1 month .
Technically, I think you could monkey-patch Wasp for shorter sessions by editing the generated code file on each build. I'll let @miho confirm that though, he's the expert
10 replies
WWasp
•Created by Bruno Njeru on 12/30/2024 in #🙋questions
Browser error
I'll need some more details before I can help 🙂
8 replies
WWasp
•Created by Bruno Njeru on 12/30/2024 in #🙋questions
Browser error
Hey @Bruno Njeru, does this happen on a clean installation? Are you using open saas?
8 replies
WWasp
•Created by NEROX on 12/18/2024 in #🙋questions
CORS issue
Hey @Stefan VitĂłria, I responded in the other thread
25 replies
WWasp
•Created by Stefan Vitória on 12/29/2024 in #🙋questions
CORS ERROR
Hey @Stefan VitĂłria, I see you're talking with the bot.
If you end up needing human help, please summariese the current situation in a message and tag me 🙂
35 replies
WWasp
•Created by Trade4Crypto.com on 12/29/2024 in #🙋questions
How to configure light & dark mode logos
Hey @Trade4Crypto.com. There is no native code for this, but you can do it yourself 🙂
Just conditionally render a logo depending on the theme setting in the client storage.
6 replies
WWasp
•Created by dexie on 12/29/2024 in #🙋questions
Prisma logging (and other PrismaClient modifications)
P.S. 1 out of every 100 users asking questions here takes their time to write a concise and well-formatted question. Thanks for being that one user ❤️
25 replies