Skip to content

Instantly share code, notes, and snippets.

@chrisui
chrisui / example-project.json
Created December 10, 2021 13:32
Nx Dev Processes
{
"root": "project",
"sourceRoot": "project/src",
"projectType": "application",
"targets": {
"serve": {
"executor": "..."
},
"dev": {
"executor": "my-executor-pkg:serve"
@chrisui
chrisui / drizzle-adapter.ts
Created July 18, 2025 13:20
Better-auth Drizzle adapter that uses schema id's
/**
* This module is a copy and extension of the better-auth drizzle-adapter which
* allows for generation of id's to be handled by the schema and/or db
*
* @see https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts
* @see https://github.com/better-auth/better-auth/issues/3445
* @see https://github.com/better-auth/better-auth/issues/2480
*/
/** biome-ignore-all assist/source/organizeImports: tmp, copied from 3rd-party */
/** biome-ignore-all lint/style/useImportType: tmp, copied from 3rd-party */