Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

experimental: new font loading

Smaug6739f927e281cb01
diff --git a/frontend/app/styles/_variables.scss b/frontend/app/styles/_variables.scss
index 55fcec29..b72f3aaa 100644
--- a/frontend/app/styles/_variables.scss
+++ b/frontend/app/styles/_variables.scss
@@ -1,4 +1,3 @@
-@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
$external-font: 'Inter', sans-serif;
$monospace-font: 'JetBrains Mono', monospace;
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 58a32245..9c3cec5b 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -43,18 +43,7 @@ export default defineNuxtConfig({
compressPublicAssets: true,
minify: true,
},
- $production: {
- ignore: [
- '**/*.stories.{js,cts,mts,ts,jsx,tsx}',
- '**/*.{spec,test}.{js,cts,mts,ts,jsx,tsx}',
- '**/*.d.{cts,mts,ts}',
- '**/.{pnpm-store,vercel,netlify,output,git,cache,data}',
- '.nuxt/analyze',
- '.nuxt',
- '**/-*.*', //
- 'pages/**/_*',
- ],
- },
+
ssr: false,
css: ['~/styles/main.scss', '~/styles/katex/katex.min.css'],
modules: ['@pinia/nuxt', '@nuxtjs/color-mode', '@vite-pwa/nuxt', '@nuxt/eslint'],
@@ -258,6 +247,15 @@ export default defineNuxtConfig({
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
{ rel: 'preconnect', href: 'https://api.alexandrie-hub.fr' },
{ rel: 'preconnect', href: 'https://cdn.alexandrie-hub.fr' },
+ {
+ rel: 'stylesheet',
+ href:
+ 'https://fonts.googleapis.com/css2?' +
+ 'family=Inter:wght@400;500;600&' +
+ 'family=Poppins:wght@400;500;600&' +
+ 'family=JetBrains+Mono:wght@400;500;600&' +
+ 'display=swap',
+ },
],
},
},