Serve lossless WOFF2 browser fonts outside blocking stylesheets

This commit is contained in:
syntaxbullet
2026-09-08 16:25:37 +02:00
parent 9f552bf608
commit 03eb8d9e7a
14 changed files with 78 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import { browserFont } from "./browser-fonts";
import { startReminders } from "./reminders/worker";
import { backupConfig, startBackups } from "./ops/backups";
import { databasePath } from "./db/config";
@@ -28,6 +29,7 @@ const server = Bun.serve({
hostname: process.env.HOST ?? "127.0.0.1",
port: Number(process.env.PORT ?? 3000),
routes: {
"/fonts/browser/*": browserFont,
"/api": req => app.fetch(req),
"/api/*": req => app.fetch(req),
"/*": index,