Open wisenickel5 opened 2 years ago
I had the same problem if you remove this line disforce the https
or add the a if (process.env.NODE_ENV === 'production')
if (process.env.NODE_ENV === 'production')
app.use(enforce.HTTPS({ trustProtoHeader: true }));
I did not test on the production.
After downloading this repository, I installed the necessary packages with npm, and hard coded the environment variables into config.js but I cannot connect to localhost at all. No errors are showing in my terminal or in the browser console, so I am not sure where to start debugging.
I tried installing
nodemon
to see if that would change anything but had no luck. To clarify, after runningnpm run nodemon
I see logs in the terminal that read:But when you try and visit https://localhost:3000/ I am met with the vague "ERR_SSL_PROTOCOL_ERROR". Any help is greatly appreciated. If more context is needed around my issue I'd be glad to provide it.