Added summary stats query.

This commit is contained in:
Mike Cao 2020-07-29 00:16:02 -07:00
parent 18de85a06d
commit f9a6f5f637
5 changed files with 61 additions and 13 deletions

View file

@ -29,7 +29,7 @@ export default function HomePage({ username }) {
}
export async function getServerSideProps({ req, res }) {
const token = parse(req.headers.cookie)['umami.auth'];
const token = parse(req.headers.cookie || '')['umami.auth'];
try {
const payload = await verifySecureToken(token);