#Access current URL in a server component

1 messages · Page 1 of 1 (latest)

terse trout
#

Is there a way to access the current path inside a server component, so that I can see the query parameters ? I know you can use usePathname, but this requires "use client" directive.