You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
OS: MacOS 13.3.1
Browser Arc (Chromium)
Version 0.112.0 (40064)
Node v18.12.1
The text was updated successfully, but these errors were encountered:
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.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: