feat: Add Discord network status integration + fix CDN caching#1
Merged
feat: Add Discord network status integration + fix CDN caching#1
Conversation
Discord Integration: - Add Discord webhook API route with Bearer auth and rate limiting - Create embed builders for health summaries and status change alerts - Add Netlify scheduled functions (6h summary, 5min status check) - Track network status state in DB for change detection - Alert on status changes, 15+ point score drops, 2+ node outages CDN Cache Fix: - Disable caching on /api/health, /api/stats, /api/nodes - Add no-store headers for Cloudflare and Netlify - Force dynamic rendering to prevent stale data 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
✅ Deploy Preview for denvermc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Next.js 16 built-in global-error fails during prerendering. Custom client component avoids useContext issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The Netlify Next.js cache was restoring stale build artifacts causing the global-error prerender failure. Now explicitly clearing .next before each build and using NODE_ENV=production consistently. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Discord Integration: Push network health updates to Discord channel via webhook
CDN Cache Fix: Resolve stale data issues on production
no-storeheaders for Cloudflare and Netlify CDN layers/api/health,/api/stats,/api/nodesNew Files
src/lib/discord.ts- Webhook utilities and embed builderssrc/app/api/discord-webhook/route.ts- API endpoint for Discord postsnetlify/functions/discord-scheduled.ts- 6-hour cron for summariesnetlify/functions/discord-status-check.ts- 5-min cron for alertsEnvironment Variables Required
Test plan
🤖 Generated with Claude Code