minester16
minester16
Explore posts from servers
DTDrizzle Team
Created by minester16 on 2/15/2024 in #help
overriding DrizzleClient so it will add a string to all queries
I'm creating multi tenant application uses 1 database. So I need to create row based secuiry. I have DI system, I need to add "slug": "tenentSlug" to all insert, select, etc. queries. Is there a example for overriding default client? Which I can check and learn? I'm using postgresjs.
4 replies
CDCloudflare Developers
Created by minester16 on 11/17/2023 in #workers-help
TypeScript on Email Workers
No description
2 replies
CDCloudflare Developers
Created by minester16 on 4/8/2023 in #pages-help
bcryptjs on Pages
Hello, is there a way to use bcryptjs on Pages? I get the error below on build time.
Error: Failed to publish your Function. Got error: Uncaught Error: Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
at functionsWorker-0.5214857304581946.js:14092:15 in r
at functionsWorker-0.5214857304581946.js:14107:97 in t.genSaltSync
at functionsWorker-0.5214857304581946.js:15644:21
Error: Failed to publish your Function. Got error: Uncaught Error: Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
at functionsWorker-0.5214857304581946.js:14092:15 in r
at functionsWorker-0.5214857304581946.js:14107:97 in t.genSaltSync
at functionsWorker-0.5214857304581946.js:15644:21
2 replies