Skip to content

Commit 348056e

Browse files
committed
Webpack config in dev and prod include copywebpack for static translations.json
Change in i18n to serve the translations from a different path
1 parent 78f87b6 commit 348056e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ app.use(corsMiddleware);
7575
app.options('*', corsMiddleware);
7676

7777
// Body parser, cookie parser, sessions, serve public assets
78-
app.use('/translations', Express.static('translations/locales/'));
78+
app.use('/locales', Express.static(path.resolve(__dirname, '../dist/static/locales'), { cacheControl: false }));
7979
app.use(Express.static(path.resolve(__dirname, '../dist/static'), {
8080
maxAge: process.env.STATIC_MAX_AGE || (process.env.NODE_ENV === 'production' ? '1d' : '0')
8181
}));

0 commit comments

Comments
 (0)