Skip to content

Commit 986714c

Browse files
CopilotAmmarAhm3d
andauthored
Migrate Chronos DevTracker API from Render to Cloudflare Workers edge deployment (#6)
* Initial plan * Update Chronos DevTracker API to Cloudflare Workers with edge computing Co-authored-by: AmmarAhm3d <125185290+AmmarAhm3d@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: AmmarAhm3d <125185290+AmmarAhm3d@users.noreply.github.com>
1 parent 48d7b8d commit 986714c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/Projects.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react';
22
import { motion, useInView } from 'framer-motion';
33
import { useRef } from 'react';
4-
import { Star, GitFork, ExternalLink, Github, Loader, Rocket, AlertCircle } from 'lucide-react';
4+
import { Star, GitFork, ExternalLink, Github, Loader, Rocket } from 'lucide-react';
55
import { fetchGitHubRepos } from '../utils/github';
66

77
// Manually defined featured full-stack project (private repo)
@@ -10,7 +10,7 @@ const chronosDevTracker = {
1010
name: 'Chronos DevTracker',
1111
description: 'Portfolio-ready full-stack project management application showcasing TypeScript across React (Vite) frontend and Express + Prisma backend with PostgreSQL, JWT auth, and automated E2E tests (Playwright).',
1212
demoUrl: 'https://ammarahm3d.github.io/chronos-devtracker-pm/',
13-
apiUrl: 'https://chronos-devtracker-pm.onrender.com/api',
13+
apiUrl: 'https://chronos-devtracker-api.ammar-ahmed-paki.workers.dev/',
1414
topics: ['TypeScript', 'React', 'Express', 'Prisma', 'PostgreSQL', 'Playwright'],
1515
isFullStack: true,
1616
};
@@ -152,18 +152,18 @@ const Projects = () => {
152152
</div>
153153

154154
{/* API Notice */}
155-
<div className="mb-4 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg">
156-
<div className="flex items-start gap-2 text-xs text-yellow-400">
157-
<AlertCircle size={14} className="mt-0.5 flex-shrink-0" />
155+
<div className="mb-4 p-3 bg-green-500/10 border border-green-500/30 rounded-lg">
156+
<div className="flex items-start gap-2 text-xs text-green-400">
157+
<Rocket size={14} className="mt-0.5 flex-shrink-0" />
158158
<span>
159-
API hosted on Render may be sleeping.{' '}
159+
API deployed on Cloudflare Workers edge network with Prisma Accelerate. Cold start double whammy mitigated for instant responses globally.{' '}
160160
<a
161161
href={chronosDevTracker.apiUrl}
162162
target="_blank"
163163
rel="noopener noreferrer"
164-
className="underline hover:text-yellow-300 transition-colors"
164+
className="underline hover:text-green-300 transition-colors"
165165
>
166-
Wake it up here
166+
Test the edge API
167167
</a>
168168
</span>
169169
</div>

0 commit comments

Comments
 (0)