fetch bug fix

This commit is contained in:
makearmy 2025-09-27 10:37:08 -04:00
parent f10dc5148f
commit a2ec2fa52c
2 changed files with 19 additions and 8 deletions

View file

@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from "next/server";
import { cookies } from "next/headers";
import { directusFetch } from "@/lib/directus";
const BASE_COLLECTION = "rigs"; // change if your collection name differs
const BASE_COLLECTION = "user_rigs";
async function bearerFromCookies() {
// Some Next 15 type defs model cookies() as async—await to satisfy TS in all envs.