Fix: Destructure APP_TEMPLATES from app-templates module export
CI / Test & Lint (push) Canceled after 0s
CI / Security audit (push) Canceled after 0s

The module exports { APP_TEMPLATES, TEMPLATE_CATEGORIES, DIFFICULTY_LEVELS }
but catalog/wizard were receiving the wrapper object, not the array.
This commit is contained in:
Hermes
2026-08-12 13:02:24 -07:00
parent 671a6cc93c
commit 842097df8f
+3 -2
View File
@@ -625,14 +625,15 @@ async function createApp() {
}));
// DC-104: App catalog — browse curated templates
const { APP_TEMPLATES: templatesArray } = require('./docker/app-templates');
apiRouter.use(catalogRoutes({
APP_TEMPLATES: require('./docker/app-templates'),
APP_TEMPLATES: templatesArray,
asyncHandler: ctx.asyncHandler,
}));
// DC-105: Smart defaults wizard
apiRouter.use(wizardRoutes({
APP_TEMPLATES: require('./docker/app-templates'),
APP_TEMPLATES: templatesArray,
asyncHandler: ctx.asyncHandler,
}));