mirror of
https://github.com/community-scripts/Proxmox.git
synced 2026-05-03 20:37:57 -05:00
Revert "Merge pull request #53 from BramSuurdje/feat--server-side-rendering"
This reverts commit53e912d881, reversing changes made to46753ef819.
This commit is contained in:
@@ -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>({
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user