DEV Community

Discussion on: šŸ Cooking a Deliveroo clone with Next.js (React), GraphQL, Strapi and Stripe - šŸ” Dishes list (part 3/7)

Collapse
 
gameoverwill profile image
Wilfredo PĆ©rez

Quick question Ryan, adding express and creating a server.js file overrides the default configuration of Next.js?

Collapse
 
ryanaz profile image
Ryan

Hey Wilfredo, adding the server.js file shouldn't override the default configuration of Next. Next will still be able to server side render as before, all adding that file is doing is giving you control over your routes/business logic on the server side. Everything will keep working as expected with Next

Collapse
 
gameoverwill profile image
Wilfredo PĆ©rez

Thanks a lot for you response. I've learned a lot of things :D

Collapse
 
gameoverwill profile image
Wilfredo PĆ©rez

Hey Ryan, one last thing in this part. I got and error in the last part, and It was because the

<Card style={{ width: "30%", margin: "0 10px" }}>

didn't have the key prop, so when I added it the error gone.

<Card style={{ width: "30%", margin: "0 10px" }} key = { res.id }>

Now I go to the next part. Thanks for this awesome tutorial.

Thread Thread
 
ryanaz profile image
Ryan

Good find Wilfredo, I'll add that to the code!