tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
291
fork
atom
a tool for shared writing and social publishing
291
fork
atom
overview
issues
28
pulls
pipelines
pass through /lish requests on publication domains
awarm.space
6 months ago
23005708
6475948f
+1
1 changed file
expand all
collapse all
unified
split
middleware.ts
+1
middleware.ts
···
49
49
return initiateAuthCallback(req);
50
50
}
51
51
let aturi = new AtUri(pub?.uri);
52
52
+
if (req.nextUrl.pathname.startsWith("/lish")) return;
52
53
return NextResponse.rewrite(
53
54
new URL(
54
55
`/lish/${aturi.host}/${encodeURIComponent(pub.name)}${req.nextUrl.pathname}`,