DEV Community

loading...

Discussion on: Introduction to Next.js - adding express and mongo to the project

Collapse
thujone profile image
Rich Goldman

Why did you skip over this part:

In the react code, /pages/index.js and /pages/photo.js we need to edit the addresses to where we are fetching from, now we need to point to 3000/api/photos. Also when fetching, we would change id to _id. The database we are using has to contain the data of course

I'm not sure what you mean here, and I cannot continue with the tutorial.

Forem Open with the Forem app