446 viewsMern Amazona
0 Comments

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

https://github.com/basir/next-tailwind-amazona/tree/main/pages/api/products

we load home page product using getServersideprops here:

https://github.com/basir/next-tailwind-amazona/blob/main/pages/index.js#L58

Bassir Answered question August 1, 2023