ok
This commit is contained in:
parent
968422e021
commit
fbb0c710fd
|
|
@ -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>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user