drizzle behind corporate proxy
is there an easy way to patch drizzles fetch to use proxy? (js)
6 Replies
👋 what is your db/provider? This sound more related to the driver you use
sqlite - turso
import { createClient } from '@libsql/client'
import { drizzle } from 'drizzle-orm/libsql'
import * as schema from '../models'
const client = createClient({
url: process.env.DATABASE_URL ?? '',
authToken: process.env.DATABASE_AUTH_TOKEN,
})
export const db = drizzle(client, { schema })
looks like there is a
fetch
config option https://github.com/tursodatabase/libsql-client-ts/blob/2f610d7dd2caec0295106725f2bb43eca0272bab/packages/libsql-core/src/config.ts#L17C5-L17C10GitHub
libsql-client-ts/packages/libsql-core/src/config.ts at 2f610d7dd2ca...
TypeScript/JavaScript client API for libSQL. Contribute to tursodatabase/libsql-client-ts development by creating an account on GitHub.
the simple solution would be to ask for your IT support to allow a bypass on your db url 😬
thanks! i will have a look
forgot to send update, but it works, thanks again 🙂
Nice!