diff --git a/backend/src/server.js b/backend/src/server.js index e192811..2e19cd3 100644 --- a/backend/src/server.js +++ b/backend/src/server.js @@ -313,7 +313,7 @@ const staticCache = isProd ? { maxAge: '7d' } : { setHeaders: (res) => res.setHe app.use('/js', express.static(jsDir, staticCache)); app.use('/css', express.static(path.join(frontendDir, 'css'), staticCache)); app.use('/img', express.static(path.join(frontendDir, 'img'), staticCache)); -app.use('/avatars', express.static(path.join(__dirname, '../../uploads/avatars'), { maxAge: '1d' })); +app.use('/avatars', express.static(path.join(__dirname, '../uploads/avatars'), { maxAge: '1d' })); // Redirect legacy .html URLs → clean URLs (301) app.use((req, res, next) => {