📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Disable blog
Blue Mousedf56f8bdc72f
diff --git a/web/app/routes/blog.$category.$slug.tsx b/web/app/routes/blog.$category.$slug.tsxindex 2cfe94e12..8cd94894c 100644--- a/web/app/routes/blog.$category.$slug.tsx+++ b/web/app/routes/blog.$category.$slug.tsx@@ -48,6 +48,9 @@ export const meta: MetaFunction = (loaderData: any) => {}export const loader: LoaderFunction = async ({ params }) => {+ return redirect('/dashboard', 302)++ // eslint-disable-next-line no-unreachableif (isSelfhosted) {return redirect('/dashboard', 302)}@@ -60,6 +63,7 @@ export const loader: LoaderFunction = async ({ params }) => {})}+ // @ts-expect-errorconst post = await getPost(slug, category)if (!post) {diff --git a/web/app/routes/blog.$slug.tsx b/web/app/routes/blog.$slug.tsxindex 0407b509e..086d7dcb2 100644--- a/web/app/routes/blog.$slug.tsx+++ b/web/app/routes/blog.$slug.tsx@@ -79,6 +79,9 @@ export const sitemap: SitemapFunction = async () => {}export const loader: LoaderFunction = async ({ params }) => {+ return redirect('/dashboard', 302)++ // eslint-disable-next-line no-unreachableif (isSelfhosted) {return redirect('/dashboard', 302)}@@ -89,6 +92,7 @@ export const loader: LoaderFunction = async ({ params }) => {})}+ // @ts-expect-errorconst post = await getPost(params.slug)if (!post) {diff --git a/web/app/routes/blog.tsx b/web/app/routes/blog.tsxindex a3a517684..473f582b3 100644--- a/web/app/routes/blog.tsx+++ b/web/app/routes/blog.tsx@@ -8,6 +8,9 @@ import { isSelfhosted, TITLE_SUFFIX } from '~/lib/constants'import { getBlogPosts } from '~/api'export const loader: LoaderFunction = async () => {+ return redirect('/dashboard', 302)++ // eslint-disable-next-line no-unreachableif (isSelfhosted) {return redirect('/dashboard', 302)}@@ -20,6 +23,7 @@ export const loader: LoaderFunction = async () => {console.error(error)})+ // eslint-disable-next-line no-unreachableif (!data || _isEmpty(data)) {return null}