Skip to content

Refactor: cleanup duplicated requests and simplify code#1

Open
Ultraivanov wants to merge 10 commits intomainfrom
refactor/cleanup
Open

Refactor: cleanup duplicated requests and simplify code#1
Ultraivanov wants to merge 10 commits intomainfrom
refactor/cleanup

Conversation

@Ultraivanov
Copy link
Copy Markdown
Owner

This PR addresses the following:

  1. Created shared utilities in src/lib for API requests, cookie parsing, and content normalization.
  2. Refactored ClientProviders.tsx to eliminate duplicated cookie parsing and simplify theme initialization.
  3. Refactored ContactForm.tsx and api/contact/route.ts to use shared jsonPost and formPost utilities.
  4. Simplified case study rendering in work/[slug]/page.tsx using new type guards and normalization logic.
  5. Removed unused imports and improved TypeScript types.
  6. Verified the build successfully.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment Apr 10, 2026 5:18am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant