Optional knowledge: adapting built-in templates
If you ever need to work solely with the built-in mailing system, changing an email template within the cloud-based supabase.com can be done easily via the UI. In your supabase.com
project, click on Authentication and then on Email Templates.
Figure 4.11: Changing built-in email templates on supabase.com
In your local instance, this UI isn’t available. To adapt an email template for local development, you have to change the default template by creating a new template as a file and setting it in config.toml
(in that config file, you’ll find the related configurations as comments that are ready to be used).
For example, if you want to change the magic link template of the built-in system, you can create a new file that contains your template at your_project_folder/supabase/templates/magic.html
. Then you open the your_project_folder/supabase/config.toml
file and search for the [auth]
section...