diff --git a/server/server.js b/server/server.js index b50bcca1..b78469a6 100644 --- a/server/server.js +++ b/server/server.js @@ -75,7 +75,7 @@ app.use(corsMiddleware); app.options('*', corsMiddleware); // Body parser, cookie parser, sessions, serve public assets -app.use('/translations', Express.static('translations/locales/')); +app.use('/locales', Express.static(path.resolve(__dirname, '../dist/static/locales'), { cacheControl: false })); app.use(Express.static(path.resolve(__dirname, '../dist/static'), { maxAge: process.env.STATIC_MAX_AGE || (process.env.NODE_ENV === 'production' ? '1d' : '0') }));