mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
Move GitHub token server-side, add privacy note, fix LinkedIn icon
Adds a small server/ proxy so the GitHub token never reaches the browser (server holds it, client calls /api/contributions), with rate limiting and response caching. Adds a collapsible UK GDPR privacy note to the Contact footer. Strips the background badge from the LinkedIn icon so it matches GitHub's bare-silhouette style. Removes em dashes and tightens some project copy. Increases the light-mode contrast between the 0 and 1 commit levels in the contribution graph. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
655e2cd32c
commit
7d1d2feccb
13 files changed
+1229
-118
No files matched your search
+11
-3
@@ -1,10 +1,18 @@
|
||||
# Copy this file to secrets/.env and fill in your own values.
|
||||
# secrets/ is gitignored — real values never leave your machine.
|
||||
# secrets/ is gitignored, so real values never leave your machine.
|
||||
VITE_NAME=Your Name
|
||||
VITE_LOCATION=City, Country
|
||||
VITE_EMAIL=you@example.com
|
||||
VITE_GITHUB_USER=your-github-username
|
||||
VITE_LINKEDIN=https://www.linkedin.com/in/your-profile
|
||||
VITE_CV_URL=/CV/Bob-CV.pdf
|
||||
# Optional — powers the contribution graph (public + private). Use a token with no scopes; it ships in the deployed bundle.
|
||||
VITE_GITHUB_TOKEN=
|
||||
|
||||
# Server-side only (server/index.js). Deliberately not prefixed with VITE_,
|
||||
# so Vite never inlines these into the browser bundle.
|
||||
# Powers the contribution graph. Use a fine-grained PAT scoped to your own
|
||||
# account only, read-only, no repository access selected. The server is the
|
||||
# only thing that ever sees it now, but keep it minimal-scope regardless.
|
||||
GITHUB_TOKEN=
|
||||
# Exact origin(s) allowed to call /api/* (your deployed domain).
|
||||
ALLOWED_ORIGIN=https://mudabbir.co.uk
|
||||
PORT=3001
|
||||
Reference in new issue
Block a user