P7 wizard prod wiring fix #2

Merged
sami7777 merged 1 commits from p7-wizard-wiring into main 2026-10-04 11:41:46 +02:00
Showing only changes of commit f7d6fe4a8a - Show all commits
+6
View File
@@ -776,8 +776,14 @@ async function createApp() {
asyncHandler: ctx.asyncHandler,
log: ctx.log,
}));
// Private Network wizard (DC-152). Dogfood finding 2026-10-04: the wizard
// factory needs INSTANCES keyed by mode id; without them every mode
// selection 503s provider_unavailable (unit tests inject their own map).
const p7TailscaleProvider = require('./network/providers/tailscale').createTailscaleProvider(); // eslint-disable-line global-require
const p7WireGuardProvider = require('./network/providers/wireguard').createWireGuardProvider(); // eslint-disable-line global-require
apiRouter.use('/network/wizard', networkWizardRoutes({
registry: { getActiveProvider },
providers: { tailscale: p7TailscaleProvider, wireguard: p7WireGuardProvider },
peopleStore: p7PeopleStore,
accessStore: p7AccessStore,
asyncHandler: ctx.asyncHandler,