From ff6cfc42f373f64d4755b6cd074eb5e755f149bd Mon Sep 17 00:00:00 2001 From: "Mr. Algorithm" <11aravipratapsingh@gmail.com> Date: Sat, 13 Dec 2025 01:35:52 +0530 Subject: [PATCH] added donation --- README.md | 17 +- app/(root)/layout.tsx | 2 + components/DonatePopup.tsx | 106 +++ components/Footer.tsx | 2 +- components/Header.tsx | 2 +- components/NavItems.tsx | 33 +- lib/actions/auth.actions.ts | 15 +- lib/actions/finnhub.actions.ts | 4 +- lib/inngest/client.ts | 4 +- lib/inngest/functions.ts | 39 +- lib/nodemailer/index.ts | 90 ++- package-lock.json | 1345 +++++++++++++++++--------------- package.json | 2 +- scripts/check-env.mjs | 112 +++ 14 files changed, 1092 insertions(+), 681 deletions(-) create mode 100644 components/DonatePopup.tsx create mode 100644 scripts/check-env.mjs diff --git a/README.md b/README.md index 7a36d4c..00d354c 100644 --- a/README.md +++ b/README.md @@ -242,13 +242,15 @@ BETTER_AUTH_SECRET=your_better_auth_secret BETTER_AUTH_URL=http://localhost:3000 # Finnhub -FINNHUB_API_KEY=your_finnhub_key -# Optional client-exposed variant if needed by client code: -NEXT_PUBLIC_FINNHUB_API_KEY= +# Note: NEXT_PUBLIC_FINNHUB_API_KEY is required for Vercel deployment +NEXT_PUBLIC_FINNHUB_API_KEY=your_finnhub_key FINNHUB_BASE_URL=https://finnhub.io/api/v1 # Inngest AI (Gemini) GEMINI_API_KEY=your_gemini_api_key +# Inngest Signing Key (required for Vercel deployment) +# Get this from your Inngest dashboard: https://app.inngest.com/env/settings/keys +INNGEST_SIGNING_KEY=your_inngest_signing_key # Email (Nodemailer via Gmail; consider App Passwords if 2FA) NODEMAILER_EMAIL=youraddress@gmail.com @@ -268,12 +270,15 @@ BETTER_AUTH_SECRET=your_better_auth_secret BETTER_AUTH_URL=http://localhost:3000 # Finnhub -FINNHUB_API_KEY=your_finnhub_key -NEXT_PUBLIC_FINNHUB_API_KEY= +# Note: NEXT_PUBLIC_FINNHUB_API_KEY is required for Vercel deployment +NEXT_PUBLIC_FINNHUB_API_KEY=your_finnhub_key FINNHUB_BASE_URL=https://finnhub.io/api/v1 # Inngest AI (Gemini) GEMINI_API_KEY=your_gemini_api_key +# Inngest Signing Key (required for Vercel deployment) +# Get this from your Inngest dashboard: https://app.inngest.com/env/settings/keys +INNGEST_SIGNING_KEY=your_inngest_signing_key # Email (Nodemailer via Gmail; consider App Passwords if 2FA) NODEMAILER_EMAIL=youraddress@gmail.com @@ -329,7 +334,7 @@ public/assets/images/ # logos and screenshots - Finnhub - Stock search, company profiles, and market news. - - Set `FINNHUB_API_KEY` and `FINNHUB_BASE_URL` (default: https://finnhub.io/api/v1). + - Set `NEXT_PUBLIC_FINNHUB_API_KEY` and `FINNHUB_BASE_URL` (default: https://finnhub.io/api/v1). - Free tiers may return delayed quotes; respect rate limits and terms. - TradingView diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index 6e6630f..d8e9619 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -3,6 +3,7 @@ import {auth} from "@/lib/better-auth/auth"; import {headers} from "next/headers"; import {redirect} from "next/navigation"; import Footer from "@/components/Footer"; +import DonatePopup from "@/components/DonatePopup"; const Layout = async ({ children }: { children : React.ReactNode }) => { const session = await auth.api.getSession({ headers: await headers() }); @@ -24,6 +25,7 @@ const Layout = async ({ children }: { children : React.ReactNode }) => {