-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sitemap.xml should fetch directly (#939)
- ui@0.75.37
- ui@0.75.36
- ui@0.75.35
- ui@0.75.34
- ui@0.75.33
- ui@0.75.32
- ui@0.75.31
- ui@0.75.30
- ui@0.75.29
- ui@0.75.28
- ui@0.75.27
- ui@0.75.26
- ui@0.75.25
- ui@0.75.24
- ui@0.75.23
- ui@0.75.22
- ui@0.75.21
- ui@0.75.20
- ui@0.75.19
- ui@0.75.18
- ui@0.75.17
- ui@0.75.16
- ui@0.75.15
- ui@0.75.14
- ui@0.75.13
- ui@0.75.12
- ui@0.75.11
- ui@0.75.10
- ui@0.75.9
- ui@0.75.8
- ui@0.75.7
- ui@0.75.6
- ui@0.75.5
- ui@0.75.4
- ui@0.75.3
- ui@0.75.2
- ui@0.75.1
- ui@0.75.0
- ui@0.74.102
- ui@0.74.101
- ui@0.74.100
- ui@0.74.99
- ui@0.74.98
- ui@0.74.97
- ui@0.74.96
- ui@0.74.95
- ui@0.74.94
- ui@0.74.93
- ui@0.74.92
- ui@0.74.91
- ui@0.74.90
- ui@0.74.80
- ui@0.74.79
- ui@0.74.78
- ui@0.74.77
- ui@0.74.76
- ui@0.74.75
- ui@0.74.74
- ui@0.74.73
- ui@0.74.72
- ui@0.74.71
- ui@0.74.70
- ui@0.74.69
- ui@0.74.68
- ui@0.74.67
- ui@0.74.66
- ui@0.74.65
- ui@0.74.64
- ui@0.74.63
- ui@0.74.62
- ui@0.74.61
- ui@0.74.60
- ui@0.74.59
- ui@0.74.58
- ui@0.74.57
- ui@0.74.56
- ui@0.74.55
- ui@0.74.54
- ui@0.74.53
- ui@0.74.52
- ui@0.74.51
- ui@0.74.50
- ui@0.74.49
- ui@0.74.48
- ui@0.74.47
- ui@0.74.46
- ui@0.74.45
- ui@0.74.44
- ui@0.74.43
- ui@0.74.42
- ui@0.74.41
- ui@0.74.40
- ui@0.74.39
- ui@0.74.38
- ui@0.74.37
- ui@0.74.36
- ui@0.74.35
- ui@0.74.34
- ui@0.74.33
- ui@0.74.32
- ui@0.74.31
- ui@0.74.30
- ui@0.74.29
- ui@0.74.28
- ui@0.74.27
- ui@0.74.26
- ui@0.74.25
- ui@0.74.24
- ui@0.74.23
- ui@0.74.22
- ui@0.74.21
- ui@0.74.20
- ui@0.74.19
- ui@0.74.18
- ui@0.74.17
- ui@0.74.16
- ui@0.74.15
- ui@0.74.14
- ui@0.74.13
- ui@0.74.12
- ui@0.74.11
- ui@0.74.10
- ui@0.74.9
- ui@0.74.8
- ui@0.74.7
- ui@0.74.6
- ui@0.74.5
- ui@0.74.4
- ui@0.74.3
- ui@0.74.2
- ui@0.74.1
- ui@0.74.0
- ui@0.73.40
- ui@0.73.39
- ui@0.73.38
- ui@0.73.37
- ui@0.73.36
- ui@0.73.35
- ui@0.73.34
- ui@0.73.33
- ui@0.73.32
- ui@0.73.31
- ui@0.73.30
- ui@0.73.29
- ui@0.73.28
- ui@0.73.27
- ui@0.73.26
- ui@0.73.25
- ui@0.73.24
- ui@0.73.23
- ui@0.73.22
- ui@0.73.21
- ui@0.73.20
- ui@0.73.19
- ui@0.73.18
- ui@0.73.17
- ui@0.73.16
- ui@0.73.15
- ui@0.73.14
- ui@0.73.13
- ui@0.73.12
- ui@0.73.11
- ui@0.73.10
- ui@0.73.9
- ui@0.73.8
- ui@0.73.7
- ui@0.73.6
- ui@0.73.5
- ui@0.73.4
- ui@0.73.3
- ui@0.73.2
- ui@0.73.1
- ui@0.73.0
- ui@0.72.33
- ui@0.72.32
- ui@0.72.31
- ui@0.72.30
- ui@0.72.29
- ui@0.72.28
- ui@0.72.27
- ui@0.72.26
- ui@0.72.25
- ui@0.72.24
- ui@0.72.23
- ui@0.72.22
- ui@0.72.21
- ui@0.72.20
- ui@0.72.19
- ui@0.72.18
- ui@0.72.17
- ui@0.72.16
- ui@0.72.15
- ui@0.72.14
- ui@0.72.13
- ui@0.72.12
- ui@0.72.11
- ui@0.72.10
- ui@0.72.9
- ui@0.72.8
- ui@0.72.7
- ui@0.72.6
- ui@0.72.5
- ui@0.72.4
- ui@0.72.3
- ui@0.72.2
- ui@0.72.1
- ui@0.72.0
- ui@0.71.25
- ui@0.71.24
- ui@0.71.23
- ui@0.71.22
- ui@0.71.21
- ui@0.71.20
- ui@0.71.19
- ui@0.71.18
- ui@0.71.17
- ui@0.71.16
- ui@0.71.15
- template-resolver@0.8.2
- template-resolver@0.8.1
- template-resolver@0.8.0
- template-resolver@0.7.6
- template-resolver@0.7.5
- template-resolver@0.7.4
- template-resolver@0.7.3
- template-resolver@0.7.2
- template-resolver@0.7.1
- template-resolver@0.7.0
- generator-cli@0.0.18
- generator-cli@0.0.17
- generator-cli@0.0.16
- generator-cli@0.0.15
- generator-cli@0.0.14
- generator-cli@0.0.13
- generator-cli@0.0.12
- generator-cli@0.0.11
- generator-cli@0.0.10
- fern-bot@0.0.11
- fern-bot@0.0.10
- fern-bot@0.0.9
- fern-bot@0.0.8
- fern-bot@0.0.7
- fern-bot@0.0.6
- fern-bot@0.0.5
- fdr@0.129.2
- fdr@0.129.1
- fdr@0.129.0
- fdr@0.128.0
- fdr@0.127.5
- fdr@0.127.4
- fdr@0.127.3
- fdr@0.127.2
- fdr@0.127.1
- fdr@0.127.0
- fdr@0.126.2
- fdr@0.126.1
- fdr@0.126.0
- fdr@0.125.0
- fdr@0.124.2
- fdr@0.124.1
- fdr@0.124.0
- fdr@0.123.0
- fdr@0.122.1
- fdr@0.122.0
- fdr@0.121.2
- fdr@0.121.1
- fdr@0.121.0
- fdr@0.120.1
- fdr@0.120.0
- fdr@0.119.0
- fdr@0.118.0
- fdr@0.117.0
- fdr@0.116.5
- fdr@0.116.4
- fdr@0.116.3
- fdr@0.116.2
- fdr@0.116.1
- fdr@0.116.0
- fdr@0.115.0
- fdr@0.114.0
- fdr@0.113.0
- fdr@0.112.0
- fdr@0.111.0
- fdr@0.110.0
- fdr@0.109.0
- fdr@0.108.0
- fdr@0.107.0
- fdr@0.106.0
- fdr@0.105.0
- fdr@0.104.1
- fdr@0.104.0
- fdr@0.103.0
- fdr@0.102.0
- fdr@0.101.0
- fdr@0.100.0
- fdr@0.99.0
- fdr@0.98.20
- fdr@0.98.19
- fdr@0.98.18
- fdr@0.98.17
- fdr@0.98.16
- fdr@0.98.15
- fdr@0.98.14
- fdr@0.98.13
- fdr@0.98.12
- fdr@0.98.11
- fdr@0.98.10
- fdr@0.98.9
- fdr@0.98.8
- fdr@0.98.7
- fdr@0.98.6
- fdr@0.98.5
- fdr@0.98.4
- fdr@0.98.3
- fdr@0.98.2
- fdr@0.98.1
- fdr@0.98.0
- fdr@0.97.1
- fdr@0.97.0
- fdr@0.96.3
- fdr@0.96.2
- fdr@0.96.1
- dashboard@0.0.0
1 parent
76db63c
commit dab9748
Showing
6 changed files
with
69 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 22 additions & 20 deletions
42
packages/ui/docs-bundle/src/pages/api/fern-docs/sitemap.xml.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { buildUrl } from "@fern-ui/fdr-utils"; | ||
import type { NextRequest } from "next/server"; | ||
import type { NextApiRequest } from "next/types"; | ||
import { toValidPathname } from "./toValidPathname"; | ||
|
||
export function buildUrlFromApiEdge(xFernHost: string, req: NextRequest): string { | ||
const maybePathName = req.nextUrl.pathname.split("/api/fern-docs")[0] ?? ""; | ||
return buildUrl({ | ||
host: xFernHost, | ||
pathname: toValidPathname(maybePathName), | ||
}); | ||
} | ||
|
||
export function buildUrlFromApiNode(xFernHost: string, req: NextApiRequest): string { | ||
const maybePathName = req.url?.split("/api/fern-docs")[0] ?? ""; | ||
return buildUrl({ | ||
host: xFernHost, | ||
pathname: toValidPathname(maybePathName), | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters