Next.js Discord

Discord Forum

Why my API is not working in production?

Answered
American Wirehair posted this in #help-forum
Open in Discord
American WirehairOP
I'm fetching data in a server component and it's working fine in the development using localhost:3000. In deployment using my domain the api is not found.

The DB connection string and the DOMAIN_NAME are already set in .env file.

1 Reply