Skip to content

Commit b4dbc2d

Browse files
committed
fix: base url const
1 parent c8d86c7 commit b4dbc2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/llms-txt/utils/buildApiDocLink.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LATEST_DOC_API_BASE_URL } from '../../../constants.mjs';
1+
import { BASE_URL } from '../../../constants.mjs';
22
import { transformNodeToString } from '../../../utils/unist.mjs';
33

44
/**
@@ -39,7 +39,7 @@ export const buildApiDocLink = entry => {
3939
const title = entry.heading.data.name;
4040

4141
const path = entry.api_doc_source.replace(/^doc\//, '/docs/latest/');
42-
const url = new URL(path, LATEST_DOC_API_BASE_URL);
42+
const url = new URL(path, BASE_URL);
4343

4444
const link = `[${title}](${url})`;
4545

0 commit comments

Comments
 (0)