mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
add new client folder and expose it at /new-app when not in production
This commit is contained in:
parent
fefcb0f4ac
commit
6bddef6878
4 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ node_modules/**
|
||||||
.bower-tmp/**
|
.bower-tmp/**
|
||||||
.bower-registry/**
|
.bower-registry/**
|
||||||
website/client-old/**
|
website/client-old/**
|
||||||
|
website/client-new/**
|
||||||
website/views/**
|
website/views/**
|
||||||
website/build/**
|
website/build/**
|
||||||
test/**
|
test/**
|
||||||
|
|
|
||||||
4
website/client-new/.eslintrc
Normal file
4
website/client-new/.eslintrc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"extends": "habitrpg/browser"
|
||||||
|
}
|
||||||
|
|
||||||
1
website/client-new/index.html
Normal file
1
website/client-new/index.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Hello World!
|
||||||
|
|
@ -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/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('/common/img', express.static(`${PUBLIC_DIR}/../../common/img`, { maxAge: MAX_AGE }));
|
||||||
expressApp.use(express.static(PUBLIC_DIR));
|
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`));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue