501 viewsMern Amazona

I need help Mr Basir:

I get an error 404 when i deploy to VERCEL.

The 3 routes: Home, Cart and SignIn seems to work but no product, users. And connection to the database failed, i suspect. But it was working fine when i test it locally in my dev environment.

I NEED HELP, im stuck here.

My repo: https://github.com/juanchoancap/amazona

My Failed App: https://mern-amazona-dythc97es-juanchoancap.vercel.app/

Bassir Answered question August 1, 2023

we don’t have an api for /api/products


we load home page product using getServersideprops here:


Bassir Answered question August 1, 2023