support ssr when build app

This commit is contained in:
Ren Amamiya
2023-04-24 13:43:45 +07:00
parent 98637feba4
commit 0a56b85492
10 changed files with 5 additions and 7 deletions

View File

@@ -59,8 +59,8 @@ export function Page() {
const pageContext = usePageContext();
const searchParams: any = pageContext.urlParsed.search;
const pubkey = searchParams.pubkey;
const privkey = searchParams.privkey;
const pubkey = searchParams.pubkey || '';
const privkey = searchParams.privkey || '';
const pool: any = useContext(RelayContext);
const [loading, setLoading] = useState(false);