docs: update api-reference project for v2 (#7307)
* remove everything v1 and make v2 default * move main v2 rewrites to book * move rewrites to book + other fixes
This commit is contained in:
@@ -10,6 +10,7 @@ NEXT_PUBLIC_DOCS_URL=
|
||||
NEXT_PUBLIC_USER_GUIDE_URL=
|
||||
NEXT_PUBLIC_UI_URL=
|
||||
NEXT_PUBLIC_API_URL=
|
||||
NEXT_PUBLIC_DOCS_V1_URL=
|
||||
ALGOLIA_WRITE_API_KEY=
|
||||
ANALYZE_BUNDLE=
|
||||
NEXT_PUBLIC_AI_ASSISTANT_URL=
|
||||
|
||||
@@ -43,7 +43,7 @@ const mdxPluginOptions = {
|
||||
process.env.VERCEL_ENV !== "production"
|
||||
? process.env.NEXT_PUBLIC_API_URL
|
||||
: undefined,
|
||||
path: "api",
|
||||
path: "v2/api",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { getLinkWithBasePath } from "docs-ui"
|
||||
|
||||
export function basePathUrl(path = "") {
|
||||
return `${process.env.NEXT_PUBLIC_BASE_PATH}${path}`
|
||||
return getLinkWithBasePath(path, process.env.NEXT_PUBLIC_BASE_PATH)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user