Postgres full-text search, image storage, and more.
An example Next.js website that shows Postgres Full Text Search, next-image
with Supabase Storage, and sending emails based on an insert trigger with Supabase Edge Functions.
schema.sql
file in the Supabase dashboard to create the relevant tablescp app/.env.local.example app/.env.local
supabase link --project-ref your-project-ref supabase secrets set SMTP_HOSTNAME="your.hostname.com" SMTP_PORT="2587" SMTP_USERNAME="your_username" SMTP_PASSWORD="your_password" SMTP_FROM="no-reply@example.com" SMTP_TO="you@example.com" FUNCTION_SECRET="your-random-secret" supabase functions deploy contact-notification
Note: SMTP_PORT
must be a port other than 25
, 465
, and 587
as Deno Deploy does not support outgoing connections to ports. AWS SES (port 2587) is recommended.
partner_contacts
Next.js
and Root Directory is set to app
.partners
table.Postgres full-text search, image storage, and more.
An example Next.js website that shows Postgres Full Text Search, next-image
with Supabase Storage, and sending emails based on an insert trigger with Supabase Edge Functions.
schema.sql
file in the Supabase dashboard to create the relevant tablescp app/.env.local.example app/.env.local
supabase link --project-ref your-project-ref supabase secrets set SMTP_HOSTNAME="your.hostname.com" SMTP_PORT="2587" SMTP_USERNAME="your_username" SMTP_PASSWORD="your_password" SMTP_FROM="no-reply@example.com" SMTP_TO="you@example.com" FUNCTION_SECRET="your-random-secret" supabase functions deploy contact-notification
Note: SMTP_PORT
must be a port other than 25
, 465
, and 587
as Deno Deploy does not support outgoing connections to ports. AWS SES (port 2587) is recommended.
partner_contacts
Next.js
and Root Directory is set to app
.partners
table.