Skip to content

Commit

Permalink
Disabled caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasnainahmad04 committed Aug 16, 2024
1 parent ddafe0c commit 9c1ec19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/actions/issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import prisma from '@/prisma/client';

export const dynamic = 'force-dynamic';

export const getIssueDetail = async (id: number) => {
const issue = await prisma.issue.findUnique({
where: { id },
Expand Down
2 changes: 2 additions & 0 deletions app/api/issue/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { NextResponse } from 'next/server';
import { createIssueSchema, searchParamsSchema } from '@/lib/validators';
import prisma from '@/prisma/client';

export const dynamic = 'force-dynamic';

export const POST = async (req: NextRequest) => {
const body = await req.json();
const validation = createIssueSchema.safeParse(body);
Expand Down

0 comments on commit 9c1ec19

Please sign in to comment.