Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2: search and ask AI #2889

Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format
  • Loading branch information
SamyPesse committed Mar 2, 2025
commit 96cd98c3f9e47e557c69f2c39f40cb10749a975e
2 changes: 0 additions & 2 deletions packages/gitbook/src/lib/v1.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,6 @@ import {
import type { GitBookDataFetcher } from '@v2/lib/data/types';
import { createImageResizer } from '@v2/lib/images';
import { createLinker } from '@v2/lib/links';
import { headers } from 'next/headers';

import {
type SiteContentPointer,
@@ -173,7 +172,6 @@ async function getDataFetcherV1(): Promise<GitBookDataFetcher> {
*/
export async function fetchV1ContextForSitePointer(pointer: SiteContentPointer) {
const baseContext = await getV1BaseContext();
const headersList = await headers();

const context = await fetchSiteContextByIds(baseContext, {
organization: pointer.organizationId,