File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# useHooks
22
3- A collection of 50 RSC safe React hooks
3+ A collection of Server Component safe React Hooks – from the ui.dev team
44
55## Standard
66
Original file line number Diff line number Diff line change 11{
22 "name" : " @uidotdev/usehooks" ,
33 "version" : " 0.0.5" ,
4- "description" : " A collection of 50 RSC safe React hooks " ,
4+ "description" : " A collection of Server Component safe React Hooks – from the ui.dev team " ,
55 "type" : " module" ,
66 "repository" : " uidotdev/usehooks" ,
77 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -11,8 +11,14 @@ const {
1111 title,
1212 description,
1313 ogImage = new URL (" /meta/og.jpg" , Astro .url ),
14- url = new URL (Astro .url .pathname , Astro .site ),
1514} = Astro .props ;
15+
16+ const pathname = Astro .url .pathname
17+
18+ const url = pathname [pathname .length - 1 ] === " /"
19+ ? new URL (pathname .slice (0 , pathname .length - 1 ), Astro .site )
20+ : new URL (Astro .url .pathname , Astro .site )
21+
1622---
1723
1824<!DOCTYPE html >
You can’t perform that action at this time.
0 commit comments