docs: fix api-reference with proxy (#7952)
This commit is contained in:
@@ -9,7 +9,11 @@ const DownloadFull = () => {
|
||||
|
||||
return (
|
||||
<Button variant="secondary">
|
||||
<Link href={`/api/download/${area}`} download target="_blank">
|
||||
<Link
|
||||
href={`${process.env.NEXT_PUBLIC_BASE_PATH}/download/${area}`}
|
||||
download
|
||||
target="_blank"
|
||||
>
|
||||
Download openapi.yaml
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
@@ -31,8 +31,8 @@ const Navbar = () => {
|
||||
return (
|
||||
<UiNavbar
|
||||
logo={{
|
||||
light: basePathUrl("/images/logo-icon.png"),
|
||||
dark: basePathUrl("/images/logo-icon-dark.png"),
|
||||
light: "/images/logo-icon.png",
|
||||
dark: "/images/logo-icon-dark.png",
|
||||
}}
|
||||
items={navbarItems}
|
||||
mobileMenuButton={{
|
||||
|
||||
@@ -43,7 +43,7 @@ const TagPaths = ({ tag, className }: TagPathsProps) => {
|
||||
paths: PathsObject
|
||||
}>(
|
||||
!Object.keys(paths).length
|
||||
? basePathUrl(`/api/tag?tagName=${tagSlugName}&area=${area}`)
|
||||
? basePathUrl(`/tag?tagName=${tagSlugName}&area=${area}`)
|
||||
: null,
|
||||
swrFetcher,
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ const TagSection = ({ tag }: TagSectionProps) => {
|
||||
}>(
|
||||
tag["x-associatedSchema"]
|
||||
? basePathUrl(
|
||||
`/api/schema?name=${tag["x-associatedSchema"].$ref}&area=${area}`
|
||||
`/schema?name=${tag["x-associatedSchema"].$ref}&area=${area}`
|
||||
)
|
||||
: null,
|
||||
swrFetcher,
|
||||
|
||||
@@ -36,7 +36,7 @@ const Tags = () => {
|
||||
|
||||
const { data } = useSWR<ExpandedDocument>(
|
||||
loadData && !baseSpecs
|
||||
? basePathUrl(`/api/base-specs?area=${area}&expand=${expand}`)
|
||||
? basePathUrl(`/base-specs?area=${area}&expand=${expand}`)
|
||||
: null,
|
||||
swrFetcher,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user