Update NavigationBar.tsx

This commit is contained in:
Damien Ostler 2024-05-28 00:02:55 -04:00
parent 82728cbc97
commit 401e3d41dc

View File

@ -25,7 +25,8 @@ export default async function AuthButton() {
// ... // ...
const heads = headers() const heads = headers()
const url = heads.get('next-url') console.log(heads)
const url = heads.get('next-url')
if(url == null) throw new Error('No URL found') if(url == null) throw new Error('No URL found')
const urlObj = new URL(url); const urlObj = new URL(url);
const currentPage = urlObj.pathname; const currentPage = urlObj.pathname;