Disable static caching on homepage
This commit is contained in:
1 parent
75cc901a95
commit
bc234895d6
2 files changed
+6
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user