๐Ÿ“ฆ colinhacks / edgedb-nextjs-blog

๐Ÿ“„ client.ts ยท 10 lines
1
2
3
4
5
6
7
8
9
10import { createClient } from 'edgedb'
import e from './dbschema/edgeql-js'

// reads value of EDGEDB_DSN automatically
export const client = createClient({
  // TLS configuration is beyond the scope of this example project
  // tlsSecurity: 'insecure',
})
export { e }