MBrimmer
MBrimmer
Explore posts from servers
DTDrizzle Team
Created by MBrimmer on 11/7/2024 in #help
Automatically convert binary to string
export const table = mysqlTable(
'table',
{
id: binary('id', { length: 16 }).notNull().primaryKey(),
}
)
export const table = mysqlTable(
'table',
{
id: binary('id', { length: 16 }).notNull().primaryKey(),
}
)
Is there a way to have drizzle always convert the binary "id" to a string when querying? Could a custom type handle the conversion bi-directionally(string to buffer and buffer to string)?
1 replies
CDCloudflare Developers
Created by MBrimmer on 1/24/2024 in #pages-help
Pages custom domain with workers using custom subdomain.
No description
11 replies
CDCloudflare Developers
Created by MBrimmer on 9/12/2023 in #workers-help
Worker custom domain routes
I'm having trouble setting my route via wrangler.toml
[env.development]
route = { pattern = "https://development-api.example.com/trpc-auth*", zone_name = "example.com", custom_domain = true }
[env.development]
route = { pattern = "https://development-api.example.com/trpc-auth*", zone_name = "example.com", custom_domain = true }
I get this error
Cannot use "https://development-api.example.com/trpc-auth*" as a Custom Domain; wildcard operators (*) are not allowed
Cannot use "https://development-api.example.com/trpc-auth*" as a Custom Domain; wildcard operators (*) are not allowed
But then when I go set the route in the console. I can set it and it works as expected. But this is very tedious to do for all my workers. Is my configuration wrong?
3 replies