Nate Vukovich
Nate Vukovich
Explore posts from servers
DTDrizzle Team
Created by Nate Vukovich on 3/9/2024 in #help
Setting up Drizzle with 2 DB sources
Hi all. I'm trying to setup a 2 source DB with NextJS and Drizzle. Is it possible to tell drizzle which index setup file to read based on my env variables? I have a Docker Container I want to use for local development and another setup when deploying to Vercel Previews. Basically I want to make the app deployable either with Docker locally or to Vercel ( using their DB connection and Storage ). Cheers for any info!
2 replies
TTCTheo's Typesafe Cult
Created by Nate Vukovich on 11/27/2023 in #questions
Connecting: T3 - Drizzle - PG - AuthJs ( v5 beta)
Hi all. Did anyone manage to get this to work together nicely? OR find a good How-To somewhere on the Net? I authenticate with the authorize callback but the session is then not available. The PG schema should be fine. And using auth() in server components always comes back as null. auth What am I missing here?
1 replies
TTCTheo's Typesafe Cult
Created by Nate Vukovich on 10/27/2023 in #questions
CT3A & turbo
Hi all. Anybody run into this error when trying to run the project with --turbo: error - node_modules/.pnpm/node-gyp-build@4.6.1/node_modules/node-gyp-build/node-gyp-build.js:22:10 Error resolving commonjs request 20 | 21 | function load (dir) { > 22 | return runtimeRequire(load.resolve(dir)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > 23 | } | ^ 24 | 25 | load.resolve = load.path = function (dir) { 26 | dir = path.resolve(dir || '.') unable to resolve dynamic It was not possible to find the requested file. Parsed request as written in source code: dynamic Path where resolving has started: [project]/node_modules/.pnpm/node-gyp-build@4.6.1/node_modules/node-gyp-build/node-gyp-build.js Type of request: commonjs request Import map: No import map entry package.json: { "name": "clyent_app", "version": "0.1.0", "private": true, "scripts": { "build": "next build", "dev": "next dev", "dev:turbo": "next dev --turbo", "lint": "next lint", "start": "next start", "db:seed": "dotenv tsx ./src/db/seed.ts", "db:push": "dotenv drizzle-kit push:pg", "drizzle:studio": "dotenv drizzle-kit studio" }, "dependencies": { "@auth/drizzle-adapter": "^0.3.5", "@hookform/resolvers": "^3.3.2", "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-dropdown-menu": "^2.0.6", "@radix-ui/react-label": "^2.0.2", "@radix-ui/react-slot": "^1.0.2", "@t3-oss/env-nextjs": "^0.7.1", "@tanstack/react-query": "^5.0.5", "@trpc/client": "^10.43.0", "@trpc/next": "^10.43.0", "@trpc/react-query": "^10.43.0", "@trpc/server": "^10.43.0", "@vercel/postgres": "^0.5.0", "class-variance-authority": "^0.7.0", "clsx": "^2.0.0", "drizzle-orm": "^0.28.6", "lucide-react": "^0.290.0", "next": "^14.0.0", "next-auth": "^4.24.3", "next-themes": "^0.2.1", "pg": "^8.11.3", "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.47.0", "superjson": "^2.2.0", "tailwind-merge": "^1.14.0", "tailwindcss-animate": "^1.0.7", "zod": "^3.22.4" }, "devDependencies": { "@types/eslint": "^8.44.6", "@types/node": "^20.8.9", "@types/pg": "^8.10.7", "@types/react": "^18.2.33", "@types/react-dom": "^18.2.14", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", "autoprefixer": "^10.4.16", "dotenv": "^16.3.1", "dotenv-cli": "^7.3.0", "drizzle-kit": "^0.19.13", "eslint": "^8.52.0", "eslint-config-next": "^14.0.0", "eslint-config-prettier": "^9.0.0", "postcss": "^8.4.31", "prettier": "^3.0.3", "prettier-plugin-tailwindcss": "^0.5.6", "tailwindcss": "^3.3.5", "tsx": "^3.14.0", "typescript": "^5.2.2" }, "ct3aMetadata": { "initVersion": "7.22.0" }, "packageManager": "pnpm@8.9.0" }
2 replies
TTCTheo's Typesafe Cult
Created by Nate Vukovich on 10/16/2023 in #questions
Next Auth + Create T3 App ( appDir )
did anybody manage to connect the appDir version of the CT3A with next-auth using a credentials provider? I can't seem to find a way to read a session after the login... Session is null after calling the getServerAuthSession() ...
6 replies