apps command

This commit is contained in:
Chris Wanstrath 2025-09-21 21:28:33 -07:00
parent b7e99755f1
commit 9427dd6c43

11
nose/bin/apps.tsx Normal file
View File

@ -0,0 +1,11 @@
import { apps } from "@/webapp"
export default function () {
const domain = "localhost"
let port = process.env.PORT || "3000"
port = port === "80" ? "" : `:${port}`
return <>
{apps().map(app => <><a href={`http://${app}.${domain}${port}`}>{app}</a>{" "}</>)}
</>
}