Skip to content

Commit 3c05a65

Browse files
committed
Make it work on v1
1 parent 79fd382 commit 3c05a65

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

packages/gitbook/e2e/internal.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ const testCases: TestsCase[] = [
433433
},
434434
{
435435
name: 'llms.txt',
436-
skip: process.env.ARGOS_BUILD_NAME !== 'v2-vercel',
437436
contentBaseURL: 'https://gitbook.gitbook.io/test-gitbook-open/',
438437
tests: [
439438
{
@@ -449,7 +448,6 @@ const testCases: TestsCase[] = [
449448
},
450449
{
451450
name: 'llms-full.txt',
452-
skip: process.env.ARGOS_BUILD_NAME !== 'v2-vercel',
453451
contentBaseURL: 'https://gitbook.gitbook.io/test-gitbook-open/',
454452
tests: [
455453
{
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { NextRequest } from 'next/server';
2+
3+
import { getSiteContentPointer } from '@/lib/pointer';
4+
import { fetchV1ContextForSitePointer } from '@/lib/v1';
5+
import { serveLLMsFullTxt } from '@/routes/llms-full';
6+
7+
export const runtime = 'edge';
8+
9+
export async function GET(_req: NextRequest) {
10+
const pointer = await getSiteContentPointer();
11+
const context = await fetchV1ContextForSitePointer(pointer);
12+
13+
return serveLLMsFullTxt(context);
14+
}

0 commit comments

Comments
 (0)