Implement Server-Sent Events for real-time updates and enhance API route handling. Added loading state and last update indicator in the home page. Improved folder and post detail fetching logic in the admin page. Added webhook notification on file changes.
Some checks failed
Deploy / build-and-deploy (push) Failing after 2s

This commit is contained in:
ZockerKatze
2025-06-24 07:23:34 +02:00
parent da5fbfa687
commit 7e2ada529d
7 changed files with 339 additions and 26 deletions

View File

@@ -3,6 +3,24 @@ const nextConfig = {
output: 'standalone',
reactStrictMode: true,
swcMinify: true,
// Exclude SSE route from static generation
experimental: {
serverComponentsExternalPackages: ['chokidar']
},
// Handle API routes that shouldn't be statically generated
async headers() {
return [
{
source: '/api/posts/stream',
headers: [
{
key: 'Cache-Control',
value: 'no-cache, no-store, must-revalidate',
},
],
},
];
},
}
module.exports = nextConfig