This commit is contained in:
Corey Johnson 2025-07-08 16:40:52 -07:00
parent 968422e021
commit fbb0c710fd
2 changed files with 3 additions and 2 deletions

View File

@ -7,14 +7,15 @@ export const loader = async (_req: Request) => {
}
export default function Index({ packagePaths }: LoaderProps<typeof loader>) {
const host = new URL(import.meta.url).host
const url = new URL(import.meta.url)
return (
<div>
<h1>Subdomain Servers</h1>
<ul>
{packagePaths.map((pkg) => (
<li key={pkg.packageName}>
<a href={`http://${pkg.dirName}.${host}`}>{pkg.packageName}</a>
<a href={`${url.protocol}${pkg.dirName}.${url.host}`}>{pkg.packageName}</a>
</li>
))}
</ul>

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB