Disable static caching on homepage

This commit is contained in:
Jannik committed 2026-09-20 23:42:24 +02:00
1 parent 75cc901a95
commit bc234895d6
2 files changed
+6

No files matched your search

+2
View File
@@ -1,3 +1,4 @@
export const dynamic = 'force-dynamic';
import { prisma } from '@/lib/db';
import Header from '@/components/Header';
import MediaWall from '@/components/MediaWall';
@@ -51,3 +52,4 @@ export default async function HomePage() {
</main>
);
}
+4
View File
@@ -47,6 +47,8 @@ const AUDIO_EXTENSIONS: Record<string, string> = {
/** Files to always exclude from scanning */
const EXCLUDED_FILENAMES = new Set([
'.ds_store',
'.stfolder',
'.stignore',
'desktop.ini',
'thumbs.db',
'.gitignore',
@@ -72,6 +74,7 @@ const EXCLUDED_SUFFIXES = [
const EXCLUDED_DIRECTORIES = new Set([
'.git',
'.syncthing',
'.stfolder',
'node_modules',
'.cache',
'__pycache__',
@@ -155,3 +158,4 @@ export function getSafeContentType(ext: string): string {
if (lower === '.svg') return 'image/svg+xml';
return getMimeType(lower);
}