Logo
Explore Help
Register Sign In
jason/wfh
1
0
Fork 0
You've already forked wfh
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
1c12b9a70d29a563eceea3eb29903c3b957b2e9f
wfh/prisma.config.ts

10 lines
214 B
TypeScript
Raw Normal View History

initial commit
2026-03-12 17:09:22 -05:00
import "dotenv/config";
fix: exclude prisma.config.ts from TS compilation, use datasource.url prisma.config.ts is a Prisma CLI config file, not part of the Next.js app — exclude it from tsconfig to prevent type errors. Also revert the migrate.adapter block (not a valid PrismaConfig key in 7.5) back to datasource.url which is the correct CLI config for db push. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:17:17 -05:00
import { defineConfig, env } from "prisma/config";
initial commit
2026-03-12 17:09:22 -05:00
export default defineConfig({
schema: "prisma/schema.prisma",
fix: exclude prisma.config.ts from TS compilation, use datasource.url prisma.config.ts is a Prisma CLI config file, not part of the Next.js app — exclude it from tsconfig to prevent type errors. Also revert the migrate.adapter block (not a valid PrismaConfig key in 7.5) back to datasource.url which is the correct CLI config for db push. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:17:17 -05:00
datasource: {
url: env("DATABASE_URL") ?? "file:./dev.db",
initial commit
2026-03-12 17:09:22 -05:00
},
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 39ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API