📈 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
fix lint
Maksim Mrug061153d4afe6
diff --git a/app/entry.client.tsx b/app/entry.client.tsxindex af0be7048..59c355509 100644--- a/app/entry.client.tsx+++ b/app/entry.client.tsx@@ -31,7 +31,7 @@ async function hydrate() {<StrictMode><RemixBrowser /></StrictMode>- </I18nextProvider>+ </I18nextProvider>,)})}diff --git a/app/entry.server.tsx b/app/entry.server.tsxindex 3fb6712ed..c909207c2 100644--- a/app/entry.server.tsx+++ b/app/entry.server.tsx@@ -20,7 +20,7 @@ const ABORT_DELAY = 5_000const { isSitemapUrl, sitemap } = createSitemapGenerator({siteUrl: MAIN_URL,autoLastmod: false,- priority: 0.8+ priority: 0.8,})export default async function handleRequest(@@ -30,7 +30,8 @@ export default async function handleRequest(remixContext: EntryContext,) {if (isSitemapUrl(request)) {- return await sitemap(request, remixContext)+ const stm = await sitemap(request, remixContext)+ return stm}const instance = createInstance()@@ -45,7 +46,7 @@ export default async function handleRequest(lng,ns,backend: {- loadPath: resolve('./public/locales/{{lng}}.json')+ loadPath: resolve('./public/locales/{{lng}}.json'),},})diff --git a/app/i18next.server.ts b/app/i18next.server.tsindex 6562b1974..8b3111f0b 100644--- a/app/i18next.server.ts+++ b/app/i18next.server.ts@@ -1,8 +1,8 @@import { RemixI18Next } from 'remix-i18next'import Backend from 'i18next-fs-backend'import { resolve } from 'node:path'-import i18n from './i18n'import { defaultLanguage, whitelist } from 'redux/constants'+import i18n from './i18n'const i18next = new RemixI18Next({detection: {diff --git a/app/root.tsx b/app/root.tsxindex 21f1adff0..5cc09b1b3 100644--- a/app/root.tsx+++ b/app/root.tsx@@ -1,11 +1,11 @@import type { LinksFunction, LoaderArgs } from '@remix-run/node'import { json } from '@remix-run/node'-import { useLoaderData } from '@remix-run/react'import {Links,LiveReload,Meta,Scripts,+ useLoaderData,ScrollRestoration,} from '@remix-run/react'import { store } from 'redux/store'@@ -92,10 +92,10 @@ export default function App() {} = useLoaderData<typeof loader>()const { i18n } = useTranslation()- const alternateLinks = _map(whitelist, (locale) => ({+ const alternateLinks = _map(whitelist, (lc) => ({rel: 'alternate',- hrefLang: locale,- href: `${url}?lng=${locale}`,+ hrefLang: lc,+ href: `${url}?lng=${lc}`,}))useChangeLanguage(locale)diff --git a/app/routes/[robots.txt].tsx b/app/routes/[robots.txt].tsxindex c8a683fd7..5f099ebd7 100644--- a/app/routes/[robots.txt].tsx+++ b/app/routes/[robots.txt].tsx@@ -7,6 +7,6 @@ Sitemap: https://swetrix.com/sitemap.xml`status: 200,headers: {'Content-Type': 'text/plain',- }+ },})}