This is a Next.js project bootstrapped with create-next-app.
This homepage showcases multiple apps from emptea studios, with support for Supabase Auth email confirmation for each app via dedicated subdirectories (e.g., /rise/auth/confirm).
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.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
This project supports email confirmation for Supabase Auth. Follow these steps to configure it:
-### 1. Environment Variables
Create a .env.local file in the root directory with the Supabase credentials for each app you plan to host. Use uppercase project slugs to form the env-var names:
NEXT_PUBLIC_RISE_SUPABASE_URL=your-rises-project-url
NEXT_PUBLIC_RISE_SUPABASE_ANON_KEY=your-rises-anon-key
NEXT_PUBLIC_PENPAL_SUPABASE_URL=your-penpal-project-url
NEXT_PUBLIC_PENPAL_SUPABASE_ANON_KEY=your-penpal-anon-keyThe helper in lib/supabase will normalize the slug you pass to createClient() (defaulting to rise), so make sure every new app has its own pair of vars before wiring the routes.
Get these values from your Supabase Dashboard:
- Navigate to your project
- Go to Project Settings > API
- Copy the Project URL and anon/public key
In your Supabase project dashboard:
- Go to Authentication > URL Configuration
- Set the Site URL to your production domain (e.g.,
https://yourdomain.com) - Add the following to Redirect URLs:
- For local development:
http://localhost:3000/rise/auth/confirm - For production:
https://yourdomain.com/rise/auth/confirm
- For local development:
Configure your email templates to use the confirmation endpoint:
- Go to Authentication > Email Templates
- For the Confirm signup template, ensure the confirmation link uses:
{{ .SiteURL }}/rise/auth/confirm?token_hash={{ .TokenHash }}&type=email
- Email confirmation:
/rise/auth/confirm - Success page:
/rise/auth/confirmed - Error page:
/rise/auth/error
To add email confirmation for additional apps:
- Create a new subdirectory:
app/[app-name]/auth/ - Copy the
confirm,confirmed, anderrorroutes fromapp/rise/auth/ - Update the Supabase redirect URLs to include the new app's endpoint
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.