#Disable email handler on build

1 messages · Page 1 of 1 (latest)

ember mural
#

Is there a way to disable email handler, right now it tries to connect to email server when i run build

12:55:13 #10 1.761 > [email protected] build:payload 12:55:13 #10 1.761 > cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload build 12:55:13 #10 1.761 12:55:18 #10 6.204 [09:55:16] [32mINFO [39m (payload): [36mStarting Payload... [39m 12:57:40 #10 136.4 [09:57:27] [31mERROR [39m (payload): [36mThere was a problem setting up the mock email handler [39m 12:57:40 #10 136.4 err: { 12:57:40 #10 136.4 "type": "Error", 12:57:40 #10 136.4 "message": "connect ETIMEDOUT :443", 12:57:40 #10 136.4 "stack": 12:57:40 #10 136.4 Error: connect ETIMEDOUT :443 12:57:40 #10 136.4 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) 12:57:40 #10 136.4 "errno": -110, 12:57:40 #10 136.4 "code": "ETIMEDOUT", 12:57:40 #10 136.4 "syscall": "connect", 12:57:40 #10 136.4 "address": "", 12:57:40 #10 136.4 "port": 443, 12:57:40 #10 136.4 "sourceUrl": "https://api.nodemailer.com/user" 12:57:40 #10 136.4 } 12:57:40 #10 136.9 12:57:40 #10 136.9 > [email protected] build:server 12:57:40 #10 136.9 > tsc 12:57:40 #10 136.9 12:57:40 #10 DONE 140.6s

tropic marshBOT
serene lake
#

We do not have the ability right now. This has come up before as a request, though. I think we will add this to our roadmap 👍

#

The current workaround would be to implement a "dummy" nodemailer that doesn't make a network call.

weak dock
#

Hey, @serene lake could you share how you implement the "dummy" nodemailer?