feat: self-host font for better privacy (#2540)

This commit is contained in:
Pierre Spring
2026-02-27 10:48:48 +01:00
committed by GitHub
parent 55776ea24f
commit 10ea21b20f
10 changed files with 17 additions and 18 deletions

View File

@@ -13,6 +13,7 @@ import type { User } from '@app/hooks/useUser';
import { Permission, useUser } from '@app/hooks/useUser';
import '@app/styles/globals.css';
import { polyfillIntl } from '@app/utils/polyfillIntl';
import '@fontsource-variable/inter';
import { MediaServerType } from '@server/constants/server';
import type { PublicSettingsResponse } from '@server/interfaces/api/settingsInterfaces';
import type { AvailableLocale } from '@server/types/languages';

View File

@@ -13,13 +13,7 @@ class MyDocument extends Document {
render(): JSX.Element {
return (
<Html>
<Head>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
/>
</Head>
<Head />
<body>
<Main />
<NextScript />