From c5d7d5dea27dff493d5566b824dd1f921cb3cefe Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 19 Aug 2020 14:42:54 -0700 Subject: [PATCH] Fix not found appearing on share pages. --- package.json | 2 +- pages/share/[...id].js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d661b553..aa0c620f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "umami", - "version": "0.10.0", + "version": "0.10.1", "description": "A simple, fast, website analytics alternative to Google Analytics. ", "author": "Mike Cao ", "license": "MIT", diff --git a/pages/share/[...id].js b/pages/share/[...id].js index 4a099e2e..15b911d4 100644 --- a/pages/share/[...id].js +++ b/pages/share/[...id].js @@ -16,7 +16,7 @@ export default function SharePage() { if (website) { setWebsiteId(website.website_id); - } else { + } else if (typeof window !== 'undefined') { setNotFound(true); } }