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) {
|
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) } })
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue