How to generate build files in next js
How to generate build files in next js
I am learning basic next js. If we run npm run build create-react-app will generate build folder index.html and bundle files. In next js. It doesn't create any build file. How will I deploy next js project in the server
.next folder
@Tholle static file will be same as build in create-react-app or is there any difference between them ?
– viswa ram
2 days ago
The
build
script in create-react-app
will create a production ready React SPA, but next export
will create a bunch of static pages from your app, so it's not quite the same.– Tholle
2 days ago
build
create-react-app
next export
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Next usually needs a server to run, but if you want to create static pages out of your app, your could use next export.
– Tholle
Jun 30 at 10:39