Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercepted emails are not redirected to the browser from a container #495

Open
sebhulse opened this issue May 14, 2024 · 0 comments
Open

Comments

@sebhulse
Copy link

sebhulse commented May 14, 2024

Describe the bug
When running the mailing dev server from within a docker container, intercepted emails are not redirected to the browser.
Related feature request: #496

To Reproduce
Steps to reproduce the behavior:

  1. Build a NextJS project into a docker container with the node:latest image
  2. Run the container
  3. Open a terminal in the container
  4. Start the mailing dev server
  5. Trigger an email send from the NextJS app

Expected behavior
Mailing should redirect the user to the email preview in the browser e.g. http://localhost:3883/intercepts/

Instead, the URL is not displayed in the browser and the logs from the terminal need to be checked to get the ID of the intercept/preview and the URL needs to be manually accessed via the browser.

I may require some additional configuration for my docker setup to forward browser redirects to the host browser - please advise!

Note that email intercepts work on my machine when running yarn mailing from the host OS, but I'm trying to build a more user-friendly devcontainer setup, hence the requirement to run mailing from within docker. Thanks!

Desktop (please complete the following information):

Additional context
Add any other context about the problem here.

@sebhulse sebhulse changed the title Intercepted emails are not redirected to the browser in dev environment Intercepted emails are not redirected to the browser from a container May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant