Skip to content

Commit

Permalink
fix: build issues with prerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Aug 19, 2023
1 parent 7cfce07 commit ff117b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/guestbook/add/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NextResponse } from 'next/server';
import { db } from '@/lib/db';
import { guestbookTable } from '@/models/schema';

export const GET = async () => {
export const POST = async () => {
await db
.insert(guestbookTable)
.values({
Expand Down

0 comments on commit ff117b9

Please sign in to comment.