All Questions
3 questions
0
votes
0
answers
120
views
How to use Drizzle-zod types in Nuxt?
I have a big monorepo with 3 nuxt applications that share a common server (written in Hono). The structure of my app is:
.
├── apps
│ ├── web1
│ ├── web2
│ └── web3
├── package.json
├── packages
...
0
votes
1
answer
94
views
Type inference for Nitro plugin
In my Nuxt3 application I would like to use drizzle as my ORM. I registered the DB connection as a Nitro plugin like this:
export default defineNitroPlugin(async (nitroApp) => {
const db = ...
0
votes
1
answer
292
views
dontenv.config() in nuxt 3 gives error process.cwd is not a function
I am trying to integrate Drizzle into Nuxt 3.
In /server/db/index.ts I have the following
import { sql } from '@vercel/postgres';
import { drizzle } from 'drizzle-orm/vercel-postgres';
import dotenv ...