this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix apex domain

alice e6482d96 9dbd8a88

+35 -2
+19
src/app/alice/layout.tsx
··· 1 + import "../globals.css"; 2 + import React from "react"; 3 + 4 + export const metadata = { 5 + title: "alice.bsky.sh", 6 + description: "alice.bsky.sh", 7 + }; 8 + 9 + export default function RootLayout({ 10 + children, 11 + }: { 12 + children: React.ReactNode; 13 + }) { 14 + return ( 15 + <html lang="en"> 16 + <body>{children}</body> 17 + </html> 18 + ); 19 + }
+3
src/app/alice/page.tsx
··· 1 + export default function Home() { 2 + return <div>hi i&apos;m alice</div>; 3 + }
src/app/alice/route.ts src/app/alice/route.tsbak
+6 -1
src/utils/subdomain.ts
··· 4 4 // On client side, get the host from window 5 5 host = window.location.host; 6 6 } 7 + 7 8 if (host && host.includes(".")) { 8 9 const candidate = host.split(".")[0]; 9 - if (candidate && !candidate.includes("localhost")) { 10 + if ( 11 + candidate && 12 + !candidate.includes("localhost") && 13 + !candidate.includes("bsky") 14 + ) { 10 15 // Valid candidate 11 16 subdomain = candidate; 12 17 }
+7 -1
tsconfig.json
··· 23 23 "@/*": ["./src/*"] 24 24 } 25 25 }, 26 - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 + "include": [ 27 + "next-env.d.ts", 28 + "**/*.ts", 29 + "**/*.tsx", 30 + ".next/types/**/*.ts", 31 + "src/app/alice/route.tsbak" 32 + ], 27 33 "exclude": ["node_modules"] 28 34 }