fetch bug fix
This commit is contained in:
parent
f10dc5148f
commit
a2ec2fa52c
2 changed files with 19 additions and 8 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue