Merge pull request #37 from jambonz/fix/appenv_root_path

Update validator.js
This commit is contained in:
Dave Horton
2025-07-08 07:47:38 -04:00
committed by GitHub

View File

@@ -14,6 +14,7 @@ const schema = JSON.parse(fs.readFileSync(schemaPath, 'utf8'));
* @returns {Object} - Result with { success: boolean, config: Object, error: string }
*/
function getAppConfig({ urlPath, appJsonPath }) {
if (urlPath.length == 0) urlPath = '/';
try {
if (!appJsonPath) {
return {