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 devOpen 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.
The hero signup form posts to /api/waitlist and stores emails in Supabase.
Without Supabase env vars, the API uses an in-memory fallback in development so the form still works.
To persist signups locally or in production:
- Copy
.env.local.exampleto.env.localand fill in your Supabase project values. - Confirm the
public.waitlisttable exists (seesupabase/migrations/20260607183000_waitlist.sql). - Set
SUPABASE_URLandSUPABASE_SERVICE_ROLE_KEYin Vercel and redeploy.
Use the service role secret for SUPABASE_SERVICE_ROLE_KEY, not the anon/publishable key. SUPABASE_URL is read server-side; NEXT_PUBLIC_SUPABASE_URL is also accepted as a fallback.
If signups fail in production, check Vercel function logs for Waitlist insert error: with the Supabase error code, then compare your live table schema against the migration file.
If the error code is 42501 (permission denied for table waitlist), run supabase/fix-waitlist-permissions.sql in the Supabase SQL editor. RLS insert policies do not grant table access by themselves.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
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.
Built by Kaan Un (Kaan Ün), founder of Traction IT. Türkçe: kaanent.com/tr