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:
@@ -46,7 +46,7 @@ const withMDX = mdx({
|
||||
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