Describe the bug
I migrated my NextJS app to use NextJS 13 app router and server actions. A client component calls a server action that results in the sending of an email. In development mode, the intercepted preview shows a blank white screen. A production build deployed to Vercel results in the email being delivered with no content.
I verified my email component does work fine by forcing the send to happen from an API route in the old pages directory, all other things equal. This works as expected.
To Reproduce
Steps to reproduce the behavior:
Create a NextJS server action that sends an email
Call the server action from a component
See the intercepted preview is just a white screen
Expected behavior
I'd expect to see an accurate email preview and the same email body delivered to the recipient.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
App router code is being bundled with webpack, this includes server action code. I'm not sure if this is new with the app router, but maybe the problem has something to do with webpack.
Describe the bug I migrated my NextJS app to use NextJS 13 app router and server actions. A client component calls a server action that results in the sending of an email. In development mode, the intercepted preview shows a blank white screen. A production build deployed to Vercel results in the email being delivered with no content.
I verified my email component does work fine by forcing the send to happen from an API route in the old
pages
directory, all other things equal. This works as expected.To Reproduce Steps to reproduce the behavior:
Expected behavior I'd expect to see an accurate email preview and the same email body delivered to the recipient.
Screenshots If applicable, add screenshots to help explain your problem.![Screenshot 2023-07-18 at 9 36 21 PM](https://github.com/sofn-xyz/mailing/assets/528969/bf23c752-add2-475b-aaa2-9e4c8675cf4c)
Desktop (please complete the following information):