File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ export const Route = createFileRoute("/llms-full.txt")({
77 GET : async ( ) => {
88 const scan = source . getPages ( ) . map ( getLLMText ) ;
99 const scanned = await Promise . all ( scan ) ;
10- return new Response ( scanned . join ( "\n\n" ) ) ;
10+ return new Response ( scanned . join ( "\n\n" ) , {
11+ headers : {
12+ "Access-Control-Allow-Origin" : "*" ,
13+ } ,
14+ } ) ;
1115 } ,
1216 } ,
1317 } ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export const Route = createFileRoute("/llms.mdx/docs/$")({
1212 return new Response ( await page . data . getText ( "processed" ) , {
1313 headers : {
1414 "Content-Type" : "text/markdown" ,
15+ "Access-Control-Allow-Origin" : "*" ,
1516 } ,
1617 } ) ;
1718 } ,
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ export const Route = createFileRoute("/llms.txt")({
1111 for ( const page of source . getPages ( ) ) {
1212 lines . push ( `- [${ page . data . title } ](${ page . url } ): ${ page . data . description } ` ) ;
1313 }
14- return new Response ( lines . join ( "\n" ) ) ;
14+ return new Response ( lines . join ( "\n" ) , {
15+ headers : {
16+ "Access-Control-Allow-Origin" : "*" ,
17+ } ,
18+ } ) ;
1519 } ,
1620 } ,
1721 } ,
You can’t perform that action at this time.
0 commit comments