feat(shared-sqs): seed demo data on startup (SHARED_SQS_SEED_DEMO=true, v0.1.8)

This commit is contained in:
“Naeel”
2026-04-09 19:42:21 +03:00
parent 0ec7c2fbbb
commit 2c5871ab87
4 changed files with 107 additions and 3 deletions
+4 -1
View File
@@ -77,7 +77,10 @@ log.Infof("Failed to log to file: %s, using default stdout", filename)
// Инициализация in-memory TenantStore
tenantStore := tenant.NewTenantStore()
// Автосид демо-данных при SHARED_SQS_SEED_DEMO=true
if os.Getenv("SHARED_SQS_SEED_DEMO") == "true" {
seedDemoData(tenantStore)
}
// Роутер с tenant auth и admin API
r := router.New(tenantStore, adminToken)