File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/app/middleware/(site)/(core)/llms-full.txt Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,6 @@ const testCases: TestsCase[] = [
433
433
} ,
434
434
{
435
435
name : 'llms.txt' ,
436
- skip : process . env . ARGOS_BUILD_NAME !== 'v2-vercel' ,
437
436
contentBaseURL : 'https://gitbook.gitbook.io/test-gitbook-open/' ,
438
437
tests : [
439
438
{
@@ -449,7 +448,6 @@ const testCases: TestsCase[] = [
449
448
} ,
450
449
{
451
450
name : 'llms-full.txt' ,
452
- skip : process . env . ARGOS_BUILD_NAME !== 'v2-vercel' ,
453
451
contentBaseURL : 'https://gitbook.gitbook.io/test-gitbook-open/' ,
454
452
tests : [
455
453
{
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments