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

View file

@ -3,6 +3,7 @@ node_modules/**
.bower-tmp/**
.bower-registry/**
website/client-old/**
website/client-new/**
website/views/**
website/build/**
test/**

View file

@ -0,0 +1,4 @@
{
"extends": "habitrpg/browser"
}

View file

@ -0,0 +1 @@
Hello World!

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`));
};