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