diff --git a/src/server/typesense/author.ts b/src/server/typesense/author.ts index 89c5dcfc..32e462e6 100644 --- a/src/server/typesense/author.ts +++ b/src/server/typesense/author.ts @@ -1,3 +1,5 @@ +"use server"; + import type { SearchResponse } from "typesense/lib/Typesense/Documents"; import { type SearchOptions, diff --git a/src/server/typesense/book.ts b/src/server/typesense/book.ts index d9731751..513e068c 100644 --- a/src/server/typesense/book.ts +++ b/src/server/typesense/book.ts @@ -1,3 +1,5 @@ +"use server"; + import type { SearchResponse } from "typesense/lib/Typesense/Documents"; import type { AuthorDocument } from "@/types/author"; import type { BookDocument } from "@/types/book"; diff --git a/src/server/typesense/global.ts b/src/server/typesense/global.ts index 859fff57..d8d6c550 100644 --- a/src/server/typesense/global.ts +++ b/src/server/typesense/global.ts @@ -1,3 +1,5 @@ +"use server"; + import { makeSearchRequest } from "@/lib/typesense"; import { makePagination,