fix imports

This commit is contained in:
andrzej 2024-06-11 19:13:56 +02:00
parent b36f0edfb1
commit d54b8180ce
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import prisma from "../../lib/db.mjs" // "use server"
import prisma from "app/lib/db"
async function getStory(id: string) { async function getStory(id: string) {
const story = await prisma.story.findFirst({ where: { id: Number(id) } }) const story = await prisma.story.findFirst({ where: { id: Number(id) } })

View File

@ -1,5 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": "src/",
"lib": [ "lib": [
"dom", "dom",
"dom.iterable", "dom.iterable",
@ -26,7 +27,8 @@
"next-env.d.ts", "next-env.d.ts",
".next/types/**/*.ts", ".next/types/**/*.ts",
"**/*.ts", "**/*.ts",
"**/*.tsx" "**/*.tsx",
"src/app/lib/db.ts"
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules"