fix: use absolute path instead of relative in index resolver
This commit is contained in:
parent
6f6134f051
commit
66f6e9034e
|
@ -48,7 +48,7 @@ export function getRepoUrl(user: User): URL {
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
export function getIndexUrl(baseUrl: URL): URL {
|
export function getIndexUrl(baseUrl: URL): URL {
|
||||||
if (baseUrl.pathname.endsWith('./dist/')) {
|
if (baseUrl.pathname.endsWith('/dist/')) {
|
||||||
return new URL('./index.html', baseUrl)
|
return new URL('./index.html', baseUrl)
|
||||||
}
|
}
|
||||||
return new URL('./README.md', baseUrl)
|
return new URL('./README.md', baseUrl)
|
||||||
|
|
Loading…
Reference in a new issue