Add performance optimizations and component refactors
- Cache read-heavy public API routes via redisCache (leaderboard, values, shop, articles, photos, guilds, teams, staff, users, home, radio, badges) - Add single-flight and bounded-memory cache layer with unit tests - Parallelize independent DB queries on search, rares, shop, staff, polls and profile pages - Push radio points leaderboard aggregation to SQL with a LIMIT - Split studio-client and import-furni-client into focused modules - Clean up next.config.ts
This commit is contained in:
1 parent
54f2bc5e0c
commit
f285a7cd98
42 files changed
+1616
-1205
No files matched your search
+5
-6
@@ -34,11 +34,11 @@ const securityHeaders = [
|
||||
];
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
cacheComponents: true, // <-- Dit activeert Cache Components en lost de 'instant' build-fout op!
|
||||
cacheComponents: true,
|
||||
deploymentId: resolveDeploymentId(),
|
||||
serverExternalPackages: ["lzma", "sharp", "pino", "pino-pretty"],
|
||||
|
||||
// Onderdruk de specifieke Turbopack waarschuwingen voor brede bestandspatronen in de lib-map
|
||||
// Silence Turbopack warnings for the broad file patterns in src/lib.
|
||||
turbopack: {
|
||||
ignoreIssue: [
|
||||
{
|
||||
@@ -47,20 +47,19 @@ const nextConfig: NextConfig = {
|
||||
],
|
||||
},
|
||||
|
||||
// Voorkom dat type-warnings (zoals ongebruikte imports) de productiebuild blokkeren
|
||||
typescript: {
|
||||
ignoreBuildErrors: false,
|
||||
},
|
||||
|
||||
// Compress responses with gzip/brotli
|
||||
// Compress responses with gzip/brotli.
|
||||
compress: true,
|
||||
|
||||
// Disable Next.js telemetry and browser sourcemaps in production
|
||||
// Disable Next.js telemetry and browser sourcemaps in production.
|
||||
productionBrowserSourceMaps: false,
|
||||
|
||||
experimental: {
|
||||
useTypeScriptCli: true,
|
||||
hideLogsAfterAbort: true, // <-- Dit verbergt de prerender bail-out logberichten!
|
||||
hideLogsAfterAbort: true,
|
||||
},
|
||||
|
||||
// Optimize images served through next/image with sharp → AVIF/WebP.
|
||||
|
||||
Reference in new issue
Block a user