Skip to content

Commit 70f1c3e

Browse files
ysamcodecursoragent
andcommitted
docs: add setup wizard email confirmation step
The setup wizard now verifies that Supabase's "Confirm email" setting is disabled before allowing admin account creation. Document this new step in installation, configuration, and deployment pages. Co-authored-by: Cursor <[email protected]>
1 parent e74fa04 commit 70f1c3e

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

content/deployment/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ New Open Source installations use a setup wizard at `/ycode/welcome`. The wizard
1717

1818
- Connecting to Supabase
1919
- Running database migrations
20+
- Verifying that the **Confirm email** setting is disabled in Supabase
2021
- Creating your admin account
2122

2223
Complete the wizard before publishing.

content/getting-started/configuration.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,23 @@ postgresql://postgres.[PROJECT-ID]:[PASSWORD]@aws-x-xx-xxxx-x.pooler.supabase.co
5959

6060
Use the **Transaction Pooler** connection method, not the direct connection. The pooler runs on port 6543 and is required for serverless environments like Vercel.
6161

62+
### Disable email confirmation
63+
64+
Ycode manages its own authentication flow and does not use Supabase's email confirmation. You need to disable it before running the setup wizard.
65+
66+
1. In your Supabase project, go to **Authentication > Sign In / Providers**.
67+
2. Find the **Confirm email** toggle and disable it.
68+
69+
The setup wizard verifies this setting automatically. If email confirmation is still enabled, the wizard prompts you to disable it before you can create an admin account.
70+
6271
## Database Migrations
6372

6473
Ycode uses migrations to create and update database tables. You can run them in two ways.
6574

6675
### Via setup wizard (recommended)
6776

6877
1. Visit `/ycode/welcome` on your site.
69-
2. Complete the setup wizard. It creates your admin account and runs migrations automatically.
78+
2. Complete the setup wizard. It connects to Supabase, runs migrations, verifies the email confirmation setting, and creates your admin account.
7079

7180
### Via CLI
7281

content/getting-started/installation.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Fork the [Ycode repository](https://github.com/ycode/ycode) on GitHub. This crea
4242
- `anon` public key
4343
- `service_role` secret key
4444
4. Go to **Settings > Database** and copy the connection string. Use the **Transaction Pooler** connection method (port 6543).
45+
5. Go to **Authentication > Sign In / Providers** and disable the **Confirm email** toggle. The setup wizard verifies this setting before allowing you to create an admin account.
4546

4647
### Step 4: Add environment variables in Vercel
4748

@@ -60,8 +61,10 @@ Trigger a new deployment so Vercel picks up the environment variables. Use **Dep
6061

6162
1. Visit your deployed site.
6263
2. Go to `/ycode/welcome` (e.g. `https://your-project.vercel.app/ycode/welcome`).
63-
3. Follow the setup wizard to create your admin account and run database migrations.
64-
4. When done, you can open the editor at `/ycode`.
64+
3. Follow the setup wizard to connect Supabase and run database migrations.
65+
4. Confirm that the **Confirm email** setting is disabled when prompted. The wizard checks this automatically.
66+
5. Create your admin account.
67+
6. When done, you can open the editor at `/ycode`.
6568

6669
</Steps>
6770

@@ -101,8 +104,10 @@ npm run dev
101104
### Step 6: Run the setup wizard
102105

103106
1. Open `http://localhost:3002/ycode/welcome` in your browser.
104-
2. Follow the setup wizard to create your admin account and run migrations.
105-
3. When done, open the editor at `http://localhost:3002/ycode`.
107+
2. Follow the setup wizard to connect Supabase and run migrations.
108+
3. Confirm that the **Confirm email** setting is disabled when prompted.
109+
4. Create your admin account.
110+
5. When done, open the editor at `http://localhost:3002/ycode`.
106111

107112
</Steps>
108113

0 commit comments

Comments
 (0)