feat: Support running under subpath (#1451)

This commit is contained in:
Roberto Fernández Iglesias
2026-03-12 22:11:11 +01:00
committed by GitHub
parent 61a3ff55cc
commit 5e6195b252
24 changed files with 97 additions and 33 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports.custom = {
version,
baseUrl,
baseUrlPath: parsedBasedUrl.pathname,
baseUrlPath: parsedBasedUrl.pathname.replace(/\/$/, ''), // Remove trailing slash
baseUrlSecure: parsedBasedUrl.protocol === 'https:',
maxUploadFileSize: envToBytes(process.env.MAX_UPLOAD_FILE_SIZE),
+1
View File
@@ -44,6 +44,7 @@ module.exports.policies = {
'_internal/update-config': ['is-authenticated', 'is-internal'],
index: true,
'swagger/show': true,
'bootstrap/show': true,
'terms/show': true,
+1 -1
View File
@@ -266,7 +266,7 @@ module.exports.routes = {
},
'GET /*': {
view: 'index',
action: 'index',
skipAssets: true,
},
};
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports.views = {
*
*/
extension: 'html',
// extension: 'ejs',
/**
*