diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9bc8b42..dfc660e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,27 +1,10 @@ name: Build and Push Docker Image on: - push: - tags: - - 'v*' - # Uncomment to also build on master pushes (rolling latest). - # Pair with concurrency + paths below to avoid excessive builds. - # branches: - # - master - # paths: - # - 'src/**' - # - 'open-sse/**' - # - 'public/**' - # - 'package*.json' - # - 'next.config.*' - # - 'Dockerfile' + release: + types: [published] workflow_dispatch: -# Uncomment if re-enabling master push trigger. -# concurrency: -# group: docker-${{ github.ref }} -# cancel-in-progress: true - env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} diff --git a/src/app/api/usage/stream/route.js b/src/app/api/usage/stream/route.js index 8fa20ac..57782dd 100644 --- a/src/app/api/usage/stream/route.js +++ b/src/app/api/usage/stream/route.js @@ -46,7 +46,6 @@ export async function GET() { }; await state.send(); - console.log(`[SSE] Client connected | listeners=${statsEmitter.listenerCount("update") + 1}`); statsEmitter.on("update", state.send); statsEmitter.on("pending", state.sendPending); @@ -67,7 +66,6 @@ export async function GET() { statsEmitter.off("update", state.send); statsEmitter.off("pending", state.sendPending); clearInterval(state.keepalive); - console.log("[SSE] Client disconnected"); }, });