Fix Email Templates for Bolt
Update your Supabase email templates to work correctly with your Bolt environment
Critical Issue Detected
Root Cause: Your Supabase email template configuration needs to be updated to work with your Bolt environment.
Your Bolt Environment
Current Bolt URL:
This URL must be configured in your Supabase settings for authentication to work properly.
Solution StepsURGENT
FIRST: Update Supabase URL Configuration
Your Site URL must be set to your Bolt environment URL
Fix URL Configuration First →THEN: Update Email Templates
Follow the steps below to update your email templates
Email Template Configuration
Open Supabase Email Templates
Go to Authentication → Email Templates in your Supabase dashboard
Open Email TemplatesSelect "Reset Password" Template
Click on the "Reset Password" template to edit it
Replace Template Content
Copy the template below and paste it into the email template editor
Save and Test
Save the template and test the password reset flow
Password Reset Template (CRITICAL)
Use this template for the "Reset Password" email template in Supabase:
<h2>Reset Your Password</h2>
<p>Hi there,</p>
<p>You recently requested to reset your password for your ChefMind AI account. Click the button below to reset it.</p>
<p><a href="{{ .ConfirmationURL }}" style="background-color: #f97316; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px; display: inline-block; font-weight: 600;">Reset Your Password</a></p>
<p>If the button doesn't work, you can copy and paste this link into your browser:</p>
<p>{{ .ConfirmationURL }}</p>
<p>If you didn't request this password reset, you can safely ignore this email.</p>
<p>This link will expire in 24 hours for security reasons.</p>
<p>Best regards,<br>
The ChefMind AI Team</p>
<hr style="margin: 20px 0; border: none; border-top: 1px solid #e5e7eb;">
<p style="font-size: 12px; color: #6b7280;">
If you're having trouble with the button above, copy and paste the URL below into your web browser:<br>
{{ .ConfirmationURL }}
</p>Email Verification Template (Optional)
Use this template for the "Confirm Signup" email template in Supabase:
<h2>Confirm Your Email Address</h2>
<p>Hi {{ .Email }},</p>
<p>Welcome to ChefMind AI! Please confirm your email address to complete your account setup.</p>
<p><a href="{{ .ConfirmationURL }}" style="background-color: #f97316; color: white; padding: 12px 24px; text-decoration: none; border-radius: 6px; display: inline-block; font-weight: 600;">Confirm Email Address</a></p>
<p>If the button doesn't work, you can copy and paste this link into your browser:</p>
<p>{{ .ConfirmationURL }}</p>
<p>If you didn't create an account with ChefMind AI, you can safely ignore this email.</p>
<p>Best regards,<br>
The ChefMind AI Team</p>
<hr style="margin: 20px 0; border: none; border-top: 1px solid #e5e7eb;">
<p style="font-size: 12px; color: #6b7280;">
If you're having trouble with the button above, copy and paste the URL below into your web browser:<br>
{{ .ConfirmationURL }}
</p>Understanding Template Variables
Key Variables
{{ .ConfirmationURL }}- Complete reset URL with tokens{{ .Email }}- User's email address{{ .SiteURL }}- Your configured site URL
Why This Fixes It
- • Uses the correct Supabase template format
- • Includes all required authentication parameters
- • Works with your Bolt environment URL
- • Provides fallback text links
Testing Your Fix
- Using the "Forgot Password" feature
- Checking that the email contains a link to your Bolt environment
- Verifying that the reset link includes authentication parameters
- Confirming that the password reset form loads correctly
Expected Result
After the fix, your reset emails will contain links like:https://your-bolt-url.com/auth/reset-password?access_token=...&refresh_token=...&type=recovery
Still Having Issues?
If you're still seeing missing parameters after following these steps:
- • Double-check that your Site URL is set to:
your-bolt-url - • Verify that you saved both the URL configuration AND the email template
- • Try requesting a new password reset (old links may still use the old template)
- • Check your Supabase project logs for any errors