Skip to content

Can't send emails on production environment deployed on vercel, but can do it on development environment #1480

Answered by mjviana
mjviana asked this question in Q&A
Discussion options

You must be logged in to vote

Un update on this - it turns out that I had a wrong configuration on my next.config.mjs file
previously I had the file like this:

const nextConfig = {
  output: "export", // Outputs a Single-Page Application (SPA).
  distDir: "./dist", // Changes the build output directory to `./dist/`.
  webpack: (config) => {
    config.resolve.fallback = {fs: false, net: false, tls: false};
    config.externals.push("pino-pretty", "encoding");
    return config;
  },
};

export default nextConfig;

By removing the output and disDir settings I was able to send emails.

Important info about output setting:

  • undefined: The default build output, .next directory, that works with production mode next start or…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mjviana
Comment options

@gabrielmfern
Comment options

@mjviana
Comment options

@mjviana
Comment options

Answer selected by gabrielmfern
@gabrielmfern
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants