Revert "Merge pull request #53 from BramSuurdje/feat--server-side-rendering"

This reverts commit 53e912d881, reversing
changes made to 46753ef819.
This commit is contained in:
Bram Suurd
2024-08-26 01:19:32 +02:00
parent 6dacf54221
commit e7e200ae45
4 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ import { NextResponse } from "next/server";
import { pb } from "@/lib/pocketbase";
import { Category } from "@/lib/types";
export const dynamic = "force-dynamic";
export async function GET() {
try {
const response = await pb.collection("categories").getFullList<Category>({

View File

@@ -2,6 +2,8 @@ import { NextRequest, NextResponse } from "next/server";
import { pb } from "@/lib/pocketbase";
import { Script } from "@/lib/types";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) {
const page = parseInt(req.nextUrl.searchParams.get("page") || "1", 10);

View File

@@ -2,6 +2,8 @@ import { NextRequest, NextResponse } from "next/server";
import { pb } from "@/lib/pocketbase";
import { Script } from "@/lib/types";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) {
try {
const response = await pb

View File

@@ -2,6 +2,8 @@ import { NextRequest, NextResponse } from "next/server";
import { pb } from "@/lib/pocketbase";
import { Script } from "@/lib/types";
export const dynamic = "force-dynamic";
export async function GET(req: NextRequest) {
const { searchParams } = new URL(req.url);
const title = searchParams.get("title");