do you have the line that creates app? let app = ... ?
do you have the export at the end of that file?
and what’s inside your .env file?
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
It is resolved. instead of putting response in each if else statement. i saved the if else statement to message value and set response to give the value of message. And Also adding “;” at the end of Require(‘dotenv’).config()