add new client folder and expose it at /new-app when not in production

This commit is contained in:
Matteo Pagliazzi
2016-09-14 16:34:55 +02:00
parent fefcb0f4ac
commit 6bddef6878
4 changed files with 9 additions and 0 deletions
+3
View File
@@ -14,4 +14,7 @@ module.exports = function staticMiddleware (expressApp) {
expressApp.use('/common/audio', express.static(`${PUBLIC_DIR}/../../common/audio`, { maxAge: MAX_AGE }));
expressApp.use('/common/img', express.static(`${PUBLIC_DIR}/../../common/img`, { maxAge: MAX_AGE }));
expressApp.use(express.static(PUBLIC_DIR));
// Expose new client when not in production
if (!IS_PROD) expressApp.use('/new-app', express.static(`${PUBLIC_DIR}/../client-new`));
};