Skip to content

What is the difference between next (dev) and next build && next start ? #15053

Answered by toughyear
toughyear asked this question in Help
Discussion options

You must be logged in to vote

@Taiterbase @toiluj23, yes I was able to resolve this issue. In my case, it was due to the difference between how I had set up (dev) and next build && next start. Take note of a few things to get it sorted -

  1. If you have used an external library, chances are it doesn't support server-side rendering. I was using react-carousel from Brainhubeu and it having some issues. Resolve it by importing the library via next/dynamic imports with ssr:false option.

  2. Another issue was that I was using/following an outdated boilerplate code for Tailwind and NextJS. Hence the way postcss.config.js was configured was error-prone. Here is the crux of the problem. at least for me - During the dev, everythin…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@toiluj23
Comment options

@toiluj23
Comment options

Comment options

You must be logged in to vote
3 replies
@toughyear
Comment options

@sean-clarke
Comment options

@mrlectus
Comment options

Comment options

You must be logged in to vote
1 reply
@brandonsueur
Comment options

Answer selected by toughyear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants