interface Env { ASSETS: Fetcher; } /** Every subdomain of nibling.run is a sandbox and gets the same page; the apex is the app's old name. */ export default { fetch(request, env) { if (new URL(request.url).hostname === "nibling.run") return Response.redirect("https://nibling.dev/", 301); return env.ASSETS.fetch(request); }, } satisfies ExportedHandler;