Absolutely tremendous effort! I love the Studio but I’m experiencing a small bug with the mailer part.
I don’t see any previews as the docs suggest. Mails work and they render properly. I can even see them coming in and view them in the Inbox, however the Template page doesn’t show them and interestingly the Renderer says “no renderers found”. This is on 8.0.0-rc with the latest packages as well.
mailer.ts
import { Mailer } from '@redwoodjs/mailer-core'
import { ResendMailHandler } from '@redwoodjs/mailer-handler-resend'
import { ReactEmailRenderer } from '@redwoodjs/mailer-renderer-react-email'
import { logger } from 'src/lib/logger'
export const mailer = new Mailer({
handling: {
handlers: {
resend: new ResendMailHandler({
apiToken: process.env.RESEND_API_KEY,
}),
},
default: 'resend',
},
rendering: {
renderers: {
reactEmail: new ReactEmailRenderer(),
},
default: 'reactEmail',
},
logger,
})
Also quick mention in regards to the mailer package. In order to deploy mailer functionality I noticed that I HAD to include the development and test defaults in mailer.ts. Otherwise my api complained on startup.
Importing Server Functions...
{"level":40,"time":1723256858261,"pid":1,"hostname":"adba65fea651","module":"mailer","msg":"No test handler specified and could not load the '@redwoodjs/mailer-handler-in-memory' handler automatically, this will prevent mail from being processed in test mode"}
/auth 748 ms
...Done importing in 749 ms
{"level":40,"time":1723256858262,"pid":1,"hostname":"adba65fea651","module":"mailer","msg":"No development handler specified and could not load the '@redwoodjs/mailer-handler-studio' handler automatically, this will prevent mail from being processed in development mode"}
Furthermore, at least on 8.0.0-rc when I run yarn install I notice that react-dom and react are expected packages for the api side. So I had to add those to make react-email work in mailer.ts (on the API package.json).
- This is only for my deployment environment. In local dev I didn’t have to add react and react-dom. I’m building my app as explained in my coolify docker guide.