this repo has no description
0
fork

Configure Feed

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

sickos_yes.jpg

alice ac329b9d 9eb92dc7

+10 -1
+5
src/app/alice/xrpc/com.atproto.identity.resolveHandle/route.ts
··· 1 + import { NextResponse } from 'next/server'; 2 + 3 + export async function GET() { 4 + return NextResponse.json({ did: 'did:plc:by3jhwdqgbtrcc7q4tkkv3cf' }); 5 + }
+5 -1
src/middleware.ts
··· 4 4 5 5 // RegExp for public files 6 6 const PUBLIC_FILE = /\.(.*)$/; // Files 7 + const DID_PATH_URI = '/xrpc/com.atproto.identity.resolveHandle'; 7 8 8 9 export async function middleware(req: NextRequest) { 9 10 // Clone the URL 10 11 const url = req.nextUrl.clone(); 11 12 12 13 // Skip public files 13 - if (PUBLIC_FILE.test(url.pathname) || url.pathname.includes('_next')) return; 14 + if ((PUBLIC_FILE.test(url.pathname) || url.pathname.includes('_next')) && !url.pathname.includes(DID_PATH_URI)) { 15 + console.log(`>>> Skipping: ${url.pathname}`); 16 + return; 17 + } 14 18 15 19 const host = req.headers.get('host'); 16 20 const subdomain = getValidSubdomain(host);