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 1
1
# useHooks
2
2
3
- A collection of 50 RSC safe React hooks
3
+ A collection of Server Component safe React Hooks – from the ui.dev team
4
4
5
5
## Standard
6
6
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @uidotdev/usehooks" ,
3
3
"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 " ,
5
5
"type" : " module" ,
6
6
"repository" : " uidotdev/usehooks" ,
7
7
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -11,8 +11,14 @@ const {
11
11
title,
12
12
description,
13
13
ogImage = new URL (" /meta/og.jpg" , Astro .url ),
14
- url = new URL (Astro .url .pathname , Astro .site ),
15
14
} = 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
+
16
22
---
17
23
18
24
<!DOCTYPE html >
You can’t perform that action at this time.
0 commit comments