The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add troubleshooting for email templates not updating (#40035)
Timothy Lim2d60fff022a6
diff --git a/apps/docs/content/troubleshooting/email-template-not-updating.mdx b/apps/docs/content/troubleshooting/email-template-not-updating.mdxnew file mode 100644index 00000000000..c0929a289d4--- /dev/null+++ b/apps/docs/content/troubleshooting/email-template-not-updating.mdx@@ -0,0 +1,31 @@+---+title = "Email template not updating"+topics = [ "auth", "studio" ]+keywords = [ "email", "template" ]++[[errors]]+code = "templatemailer_template_body_parse_error"+---++If your email templates are not updated, check [Auth Logs](/dashboard/project/_/logs/auth-logs) for any errors when the email is sent. When there are errors, we will use a fallback template with valid syntax so it will not show any of your customizations.++Typical errors relate to invalid syntax involving variables. Refer to [the Email Templates docs](/docs/guides/auth/auth-email-templates#terminology) for the supported variables and syntax.++**Example error message**++```+"event": "templatemailer_template_body_parse_error",+"msg": "templatemailer: template type \"recovery\": template: https://api.supabase.com/platform/auth/PROJECT_ID/templates/recovery:2: function \"default\" not defined",+```++The error shows an issue with `default` which is used in the invalid syntax below.++```+{{ .Data.display_name | default: "test" }}+```++The final correct syntax after removing invalid syntax.++```+{{ .Data.display_name }}+```