feat(infra): configure edge function deployment and monitoring (#276)#338
Merged
RUKAYAT-CODER merged 1 commit intoApr 28, 2026
Merged
Conversation
|
@Danielodingz Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Author
|
Hello @RUKAYAT-CODER please check PR and merge, Thanks. |
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.
Closes #276
Edge Function Deployment Configuration (#276)
Overview
This PR configures the edge function deployment pipeline and monitoring for the TeachLink API. All relevant API routes have been migrated to the Edge Runtime to ensure global delivery with minimal latency.
Changes
🛠 Infrastructure
infra/edge-config.ts: Centralized management for:.env.example: Added new environment variables for edge deployment configuration.⚡️ API Route Optimizations
export const runtime = 'edge').Cache-Controlstrategies to public GET endpoints (Courses) to maximize performance.edgeLoginto handlers to ensure visibility in Vercel/Cloudflare log drains.🔍 Monitoring & Health
/api/healthas a lightweight ping target for platform health checkers and keep-alive optimization to reduce cold starts.Impacted Areas
src/app/api/courses/*src/app/api/auth/*src/app/api/admin/feature-flags/*src/app/api/lessons/*src/app/api/performance/*src/app/api/user/*src/app/api/video-analytics/*src/app/api/notes/*Acceptance Criteria Verified