nightspite
nightspite
Explore posts from servers
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
No description
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
if the types are not equal it will yell, for these checks
const _insertApiKey: Equals<InternalInsertApiKeyType, InsertApiKeyType> = true;
const _insertApiKey: Equals<InternalInsertApiKeyType, InsertApiKeyType> = true;
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
No description
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
No description
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
No description
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
Update: I have done some demonic things, just to make sure the types are equal between db and schemas.
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
Thank you for the response! It totally makes sense and it's what I was afraid of. I will have to drop the drizzle-zod and create separate schemas then. Fortunately in this project it shouldn't be a problem, but in a more complex one that would be a pain in the ass I feel like. (I will spend some time to check, if there is no other solution to that). + Moving things like enums to the schemas package and then importing it in database would probably make sense to have a single source of truth at least for that.
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
No description
15 replies
DTDrizzle Team
Created by nightspite on 10/11/2023 in #help
exclude models from bundle
After excluding the database package from client via custom webpack config in next it now won't find the neccessary packages
webpack: (config, { isServer }) => {
if (!isServer) {
config.module.rules.push({
test: /database/,
use: 'null-loader',
});
webpack: (config, { isServer }) => {
if (!isServer) {
config.module.rules.push({
test: /database/,
use: 'null-loader',
});
15 replies