revert route groups due to nextjs bug, fix build
This commit is contained in:
@@ -5,7 +5,7 @@ import { RelayContext } from '@components/relaysProvider';
|
||||
import { DEFAULT_AVATAR } from '@stores/constants';
|
||||
|
||||
import { fetchProfileMetadata } from '@utils/hooks/useProfileMetadata';
|
||||
import { truncate } from '@utils/truncate';
|
||||
import { shortenKey } from '@utils/shortenKey';
|
||||
|
||||
import Image from 'next/image';
|
||||
import { useRouter } from 'next/navigation';
|
||||
@@ -113,9 +113,7 @@ export default function Page({ params }: { params: { privkey: string } }) {
|
||||
<div className="flex items-center gap-2">
|
||||
<p className="font-semibold">{profile.metadata?.display_name || profile.metadata?.name}</p>
|
||||
<span className="leading-tight text-zinc-500">·</span>
|
||||
<p className="text-zinc-500">
|
||||
@{profile.metadata?.username || (pubkey && truncate(pubkey, 16, ' .... '))}
|
||||
</p>
|
||||
<p className="text-zinc-500">@{profile.metadata?.username || (pubkey && shortenKey(pubkey))}</p>
|
||||
</div>
|
||||
<div className="space-y-3">
|
||||
<div className="grid grid-cols-3 gap-4">
|
||||
@@ -144,7 +144,7 @@ export default function Page() {
|
||||
undefined,
|
||||
() => {
|
||||
if (eose.current > 5) {
|
||||
router.replace('/newsfeed/following');
|
||||
router.replace('/nostr/newsfeed/following');
|
||||
} else {
|
||||
eose.current += 1;
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import RelayProvider from '@components/relaysProvider';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const RelayProvider = dynamic(() => import('@components/relaysProvider'), { ssr: false });
|
||||
|
||||
export function Providers({ children }: { children: React.ReactNode }) {
|
||||
return <RelayProvider>{children}</RelayProvider>;
|
||||
|
||||
Reference in New Issue
Block a user