Deploy GitStrength to Netlify or Vercel.
-
Connect repository
Link your Git repo in the Netlify dashboard. -
Build settings
- Build command:
pnpm buildornpm run build - Publish directory:
.next - Base directory: (leave empty unless monorepo)
- Build command:
-
Plugin
Netlify should use the Next.js plugin. Ensurenetlify.tomlcontains:[[plugins]] package = "@netlify/plugin-nextjs"
-
Environment variables (Site settings → Environment variables)
Variable Value Notes GITHUB_IDYour OAuth Client ID From GitHub OAuth App GITHUB_SECRETYour OAuth Client Secret Secret NEXTAUTH_SECRETRandom string e.g. openssl rand -base64 32NEXTAUTH_URLhttps://your-site.netlify.appYour Netlify site URL NEXT_PUBLIC_APP_URLhttps://your-site.netlify.appSame as NEXTAUTH_URL(for copy-README links, sitemap, SEO) -
GitHub OAuth callback
In the GitHub OAuth App, set Authorization callback URL to:https://your-site.netlify.app/api/auth/callback/github
-
Import project
Import the repo; Vercel detects Next.js. -
Build
Default build command isnext build(orpnpm build/npm run build). No need to set publish directory. -
Environment variables (Project → Settings → Environment Variables)
Set the same variables as in the Netlify table above. Use your Vercel URL for
NEXTAUTH_URLandNEXT_PUBLIC_APP_URL(e.g.https://your-project.vercel.app). -
GitHub OAuth callback
Set Authorization callback URL to:https://your-project.vercel.app/api/auth/callback/github
- Visit
/and try “Continue with GitHub” and/followers-checkto confirm auth. - Visit
/streakand generate a card; use “Copy README” and paste in a repo README to confirm the image URL uses yourNEXT_PUBLIC_APP_URL. - Submit
https://your-domain.com/sitemap.xmlin Google Search Console if you care about SEO.