fix: use absolute path instead of relative in index resolver

This commit is contained in:
Julien Oculi 2024-06-05 16:02:54 +02:00
parent 6f6134f051
commit 66f6e9034e

View file

@ -48,7 +48,7 @@ export function getRepoUrl(user: User): 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('./README.md', baseUrl)