mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +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-registry/**
|
||||
website/client-old/**
|
||||
website/client-new/**
|
||||
website/views/**
|
||||
website/build/**
|
||||
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/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`));
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue