Add gateway auto-deploy and tag matching fallback
Some checks failed
Build Gateway Image / build (push) Successful in 3s
Build Gateway Image / deploy (push) Failing after 0s

This commit is contained in:
2026-05-08 16:34:29 +03:00
parent 327561b2e9
commit c971b40eae
4 changed files with 101 additions and 3 deletions

View File

@@ -184,8 +184,8 @@ async function handleApi(req, res) {
if (req.method === 'POST' && req.url === '/api/apply') {
const body = await readBody(req);
const selectedTag = String(body.selectedTag || '').trim();
if (!selectedTag) return sendJson(res, 400, { success: false, error: 'selectedTag is required' });
const selectedTag = String(body.selectedTag || '');
if (!selectedTag.trim()) return sendJson(res, 400, { success: false, error: 'selectedTag is required' });
const cached = readJson(settings.subscriptionCachePath, null);
if (!cached?.config) {