尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
SyncTrip runs on Vercel (Next.js) with Supabase (Postgres, Auth, Storage). All environment variables are listed in .env.example — copy it to .env.local for local development.
Create two Supabase projects — one for staging and one for production. Never test against production data.
photos storage bucket are all created by migrations — create new resources through migrations too, not the dashboard, so both projects stay identical.Migrations live in supabase/migrations/. Apply them with the Supabase CLI — never hand-edit the production schema in the dashboard.
# Before every migration: run the database tests (RLS etc.) against a local stack
supabase start
supabase db reset # applies all migrations locally
supabase test db
# Apply to staging first
supabase link --project-ref <staging-project-ref>
supabase db push
# Verify on staging, then apply to production
supabase link --project-ref <production-project-ref>
supabase db push
In Vercel → Project → Settings → Environment Variables, set each variable per environment:
| Variable | Preview | Production |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY | staging project | production project |
MAPBOX_TOKEN | Mapbox token (optional — falls back to Nominatim) | Mapbox token, URL-restricted |
GOOGLE_PLACES_KEY | optional (photo suggestions use Wikipedia without it) | Places API (New) key, API-restricted; billed per lookup |
NEXT_PUBLIC_SENTRY_DSN | Sentry DSN (optional) | Sentry DSN |
SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN | optional | set to upload source maps |
NEXT_PUBLIC_* variables are inlined at build time, so redeploy after changing them.
https://<domain>/** (production) and https://*-<team>.vercel.app/** (staging/previews). Magic links and OAuth return to /auth/callback.https://<domain>/privacy and the terms URL https://<domain>/terms. Add the Supabase callback (https://<project-ref>.supabase.co/auth/v1/callback) as an authorised redirect URI, then paste the client ID/secret into Supabase → Auth → Providers → Google.NEXT_PUBLIC_SENTRY_DSN.project:releases) and set SENTRY_ORG, SENTRY_PROJECT and SENTRY_AUTH_TOKEN in Vercel. Source maps are only uploaded when SENTRY_AUTH_TOKEN is set.NEXT_PUBLIC_SENTRY_DSN unset (local dev, CI) Sentry is a no-op. Config lives in src/instrumentation.ts, src/instrumentation-client.ts, sentry.server.config.ts and sentry.edge.config.ts; PII collection is disabled via the dataCollection option (Sentry v11's replacement for sendDefaultPii: false).[placeholders] in src/app/privacy/page.tsx and src/app/terms/page.tsx and have them reviewed.npm run build and npx eslint src locally (CI does the same).To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.