You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I posed a question over in spectrum, but got no answer; I hope I am not spamming here)
First things first: I am absolutely loving Next.JS! It is so much simpler to use than other React frameworks out there, and gives a lot of stuff out-of-the-box in a simple-to-grasp way. Thanks!
Now for my question: the documentation seems kind of slim on how production builds work: what is needed as far as dependencies go? Are all the DevTools shipped (babel, WebPack, etc.) in production? Also, when I add a framework, (say material-ui), does that need to be in my dependencies or devDependencies?
I ask because, when building for Docker, I would like to create the smallest image possible, and when I add a framework (such as material-ui) I am accustomed to adding it as a devDependency. However, with NextJS, it is unclear to me what the runtime needs are: does NextJS need such dependencies for SSR, etc.?
If sufficient explanation is given here, I wouldn't mind condensing it into a PR for the docs, as I wish this was more clearly explained.
Thanks!
The text was updated successfully, but these errors were encountered:
Question about Next.js
(I posed a question over in spectrum, but got no answer; I hope I am not spamming here)
First things first: I am absolutely loving Next.JS! It is so much simpler to use than other React frameworks out there, and gives a lot of stuff out-of-the-box in a simple-to-grasp way. Thanks!
Now for my question: the documentation seems kind of slim on how production builds work: what is needed as far as dependencies go? Are all the DevTools shipped (babel, WebPack, etc.) in production? Also, when I add a framework, (say material-ui), does that need to be in my
dependencies
ordevDependencies
?I ask because, when building for Docker, I would like to create the smallest image possible, and when I add a framework (such as
material-ui
) I am accustomed to adding it as a devDependency. However, with NextJS, it is unclear to me what the runtime needs are: does NextJS need such dependencies for SSR, etc.?If sufficient explanation is given here, I wouldn't mind condensing it into a PR for the docs, as I wish this was more clearly explained.
Thanks!
The text was updated successfully, but these errors were encountered: