尚未收集仓库信息。
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Events from everywhere. Next.js on Vercel, Supabase for data, login, and storage.
npm install.env.example to .env.local and fill in the staging values (project gvents-staging).npm run dev, then open http://localhost:3000CI runs these on every pull request. Run them locally before pushing:
npm run lint
npm run typecheck
npm test
npm run build
gvents-staging (eu-west-2). Used for every test.gvents-prod (eu-west-2). Only changed after staging passes the checklist.Schema changes are migrations in supabase/migrations/. See supabase/README.md for how to apply them. Apply to staging first, then production.
staging. When staging has been checked, open a pull request from staging into main. Nothing is pushed to staging or main directly.requireEventRole in src/lib/auth.ts, so users get a clear answer.feature branch ──PR──▶ staging ──PR──▶ main
preview URL staging site production site
staging database production database
.github/workflows/ci.yml) runs lint, typecheck, tests, build and the migration checks on every pull request.main → Production, with the production Supabase keys, at gventz.com (www.gventz.com redirects to it).staging → a Preview with the staging Supabase keys, at staging.gventz.com (the domain is assigned to the staging branch in Vercel → Settings → Domains)..github/workflows/migrate.yml):
staging applies new migrations to gvents-staging automatically;staging, target production, confirm with "apply to production". The automatic release waits for this, so the database is always ready before the new code goes live..github/workflows/promote.yml)When Vercel finishes deploying staging, the pipeline checks that:
staging.gventz.com,It then fast-forwards main to that commit, and Vercel deploys production from exactly the code that was tested. It also smoke-tests production afterwards.
If any step fails, nothing reaches production. The pipeline opens (or comments on) a GitHub issue labelled deploy-failure, which GitHub emails to everyone watching the repo, and posts to Slack when SLACK_WEBHOOK_URL is set.
It stops instead of promoting when:
main has commits that staging doesn't: merge main into staging first..github/workflows/: GitHub doesn't let the pipeline push those, so open a pull request from staging into main.Environment variables per Vercel environment are listed in .env.example. NEXT_PUBLIC_SITE_URL must be the public address of each environment (production domain for Production, the staging domain for the staging branch).