mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
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>
17 lines
511 B
JavaScript
17 lines
511 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
// Personal data lives in secrets/.env (gitignored, never uploaded).
|
|
envDir: "secrets",
|
|
server: {
|
|
// In dev, forward API calls to the local server/index.js proxy
|
|
// (run `npm start` inside server/) instead of duplicating its logic here.
|
|
proxy: {
|
|
"/api": "http://localhost:3001",
|
|
},
|
|
},
|
|
});
|