Commits
A raw timeline of updates, builds, and iterations pushing this site forward.
•1cdb673
Merge pull request #30 from omrajguru05/claude/crazy-lalande
Add blog post: Directional Thinking Framework
•1780422
Add new blog post: How My Brain Actually Works (Directional Thinking Framework)
New writing with a checklist PDF export feature and audio narration.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•6cc0066
Merge pull request #29 from omrajguru05/claude/keen-knuth
fix: Prevent breadcrumb separator from being clipped by overflow
•81e9a6c
fix: Prevent breadcrumb separator from being clipped by overflow
Flatten the breadcrumb structure so each `/` separator is a direct flex
child instead of being nested inside a shrinkable wrapper span. This
prevents the separator from being clipped when the parent overflows.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•0cb6507
Merge pull request #28 from omrajguru05/claude/ecstatic-mcnulty
Fix search CORS: move route out of /api/
•d201319
fix: Add loadError to useEffect deps so retry re-triggers fetch
Also guard the "Did you mean?" suggestion block with !loadError for
consistency with the other result states.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•493e96a
fix: Show error state with retry when search index fails to load
Added loadError state so fetch failures display a 'Failed to load
search index' message with a 'Try again' button instead of silently
showing an empty search.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•795975e
fix: Throw on unexpected search index payload shape
Non-array responses now throw a descriptive error instead of silently
doing nothing, which surfaces in the existing .catch handler.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•742007e
fix: Validate search index fetch response before using data
Check res.ok before parsing JSON, validate payload is an array before
setting state, use .finally() to always clear loading state, and log
fetch errors to console.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•040882d
fix: Move search index route out of /api/ to avoid CORS rewrite
The /api/* path is rewritten to api.omrajguru.com which causes CORS
errors when fetched from www.omrajguru.com. Moved route to /search-data
so it stays on the same origin.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•2dd4317
feat: Add new article discussing AI's self-improvement and control risks.
•c9e27b4
feat: add new blog post "From Cloud Skills to the End of Human Control: Everything I Learned About AI's Most Dangerous Frontier".
•4678787
Merge branch 'master' of https://github.com/omrajguru05/om-mdx-blog
•52e9a1e
added a new post
•976b4ae
Merge pull request #27 from omrajguru05/claude/ecstatic-mcnulty
Fix global search and add glassmorphic UI
•5f2bd5a
fix: Force search index route to static pre-rendering
The API route reads content files with fs which aren't available in
Vercel serverless functions at request time. force-static ensures the
index is generated at build time when content files are accessible.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•9ebc4a6
Merge pull request #26 from omrajguru05/claude/ecstatic-mcnulty
Improve search: index all content & glassmorphic UI
•95a3eb9
fix: Log search index errors, improve focus a11y, fix category pluralization
- Replace bare catch blocks with console.error logging in search-index API
- Add visible focus-visible ring to search input and clear button
- Use explicit CATEGORY_LABELS map instead of naive `${category}s` pluralization
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•2d5e27e
fix: Guard against undefined fields in page-level search filters
Added optional chaining to toLowerCase() calls in WritingsSearch and
QuickShipsSearch to prevent crashes when post fields are undefined.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•ad1812f
feat: Fix global search with glassmorphic UI and index all content types
Search now indexes poetry, listening, reading, and static pages alongside
writings, quick ships, builds, and projects. Modal redesigned with
black-tinted glassmorphism (backdrop-blur-2xl, bg-black/40, inner glow).
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•ab9e987
Merge pull request #25 from omrajguru05/claude/wizardly-curie
Add CORS headers to github-contributions API route
•8056f24
fix: Add localhost CORS origins for dev and cache preflight responses
Include localhost:3000 and localhost:5173 in ALLOWED_ORIGINS when not in
production so CORS works during local development. Add Access-Control-Max-Age
header (24h) to let browsers cache preflight responses.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•309dde0
fix: Add CORS headers to github-contributions API route
The API was rejecting requests from www.omrajguru.com because the
Access-Control-Allow-Origin header only matched omrajguru.com (no www).
This adds dynamic CORS headers that whitelist all domain variants
(www/non-www for both .com and .co.in) and handles preflight OPTIONS.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•0646aa8
Merge pull request #24 from omrajguru05/claude/clever-lamarr
feat: route API through api.omrajguru.com subdomain
•cab950e
fix: strip leading api/ segment in fetchApi to prevent duplication
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•a8f7b6b
fix: block non-API paths on api.omrajguru.com subdomain
Return 404 JSON for bare root and non-API paths on the API subdomain
instead of falling through to the homepage.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•68b3012
fix: normalize slashes in API utility, prevent double /api prefix, fix hardcoded share URLs
- api.ts: strip trailing slashes from env vars, normalize leading slashes in path
- middleware.ts: strip existing /api prefix before prepending to avoid /api/api/...
- reading/[slug], poetry/[slug]: fix hardcoded omrajguru.co.in → use baseUrl variable
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•f22e767
Merge pull request #23 from omrajguru05/claude/clever-lamarr
feat: route API through api.omrajguru.com subdomain
•c2bc621
feat: route all API calls through api.omrajguru.com subdomain
- Add middleware to rewrite api.omrajguru.com/* to /api/* with CORS
- Create src/lib/api.ts utility (API_URL, fetchApi) as single source of truth
- Update OG image URLs in 13 page/route files to use API_URL
- Update client-side fetches in ContactForm, GitHubContributions, SearchModal
Requires: NEXT_PUBLIC_API_URL=https://api.omrajguru.com env var in Vercel
and api.omrajguru.com domain added to the Vercel project.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
•ae631a2
Merge pull request #22 from omrajguru05/claude/clever-lamarr
fix: update fallback base URL to omrajguru.com