fix imports
This commit is contained in:
parent
b36f0edfb1
commit
d54b8180ce
|
@ -1,4 +1,5 @@
|
|||
import prisma from "../../lib/db.mjs"
|
||||
// "use server"
|
||||
import prisma from "app/lib/db"
|
||||
|
||||
async function getStory(id: string) {
|
||||
const story = await prisma.story.findFirst({ where: { id: Number(id) } })
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "src/",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
|
@ -26,7 +27,8 @@
|
|||
"next-env.d.ts",
|
||||
".next/types/**/*.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
"**/*.tsx",
|
||||
"src/app/lib/db.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
|
|
Loading…
Reference in New Issue