Skip to content

fix: visitor counter 403 on Vercel#9

Merged
anurag629 merged 4 commits intomainfrom
dev
Feb 27, 2026
Merged

fix: visitor counter 403 on Vercel#9
anurag629 merged 4 commits intomainfrom
dev

Conversation

@anurag629
Copy link
Member

Summary

  • Fix visitor counter POST request returning 403 Forbidden on Vercel
  • Add Content-Type: application/json header to bypass Vercel's CSRF protection

Test plan

  • /api/visitors POST returns 200 with JSON after deploy
  • No console errors on any page
  • Visitor counts update in footer

* docs: improve README hero image, add contributors section (#1)

Switch hero from blog-minimal-dark to github-readme-hero template with
brand accent color. Add contrib.rocks contributors grid. Condense
contributing section to avoid redundancy with CONTRIBUTING.md.

* ci: add workflow to restrict PRs targeting main to dev branch only

PRs targeting main from any branch other than dev will fail the
PR Target Check. This enforces the flow: feature branches → dev → main.

* ci: retrigger checks after base branch change

* ci: run CI on PRs targeting dev branch too
* feat: Raycast-inspired UI/UX redesign across all pages

Redesign the entire site with a polished, premium feel inspired by Raycast:

- Design system: enhanced shadows, gradients, glassmorphism, animations
- Header: frosted glass, gradient border, nav hover pills
- Homepage: hero glow, equal-width bento category grid, feature cards,
  vertical timeline, terminal chrome API teaser, OSS banner
- Templates gallery: search bar, filter pills, card hover glow
- Editor: dot-grid canvas, refined panels, gradient export button
- API docs: sidebar icons, terminal chrome code blocks, copy buttons
- 404 page: SVG illustration, floating shapes, gradient text
- Footer: 3-column grid layout with gradient top border
- Layout: Astro View Transitions for smooth page navigation
- Fix thumbnail API rendering templates at 600x315 viewport (cropping)
  instead of 1200x630 with resvg scale-down (showing full template)

* feat: add GitHub stars and visitor counter utilities

Add supporting libs for GitHub star count, Upstash Redis visitor
counter, and the /api/visitors endpoint. Include .env.example for
required environment variables.
Vercel CSRF protection blocks POST requests without explicit
Content-Type: application/json, returning 403 Forbidden.
@vercel
Copy link

vercel bot commented Feb 27, 2026

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

Project Deployment Actions Updated (UTC)
ogcops Ready Ready Preview, Comment Feb 27, 2026 10:17am

Request Review

# Conflicts:
#	src/components/Footer.astro
@anurag629 anurag629 merged commit e4fd854 into main Feb 27, 2026
5 checks passed
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