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 am a bit confused. I can run npm run dev:watch and get something on http://localhost:3000 but how do I export this to static pages ?
So I could just copy those pages to apache, nginx, S3, etc. ?
npm run build seems to build something but the current folder don't have any new files or directory. npm run export complains about page "/" and says to consult next.js help.
Thanks :).
The text was updated successfully, but these errors were encountered:
Thanks for the question, and it's a very valid one. I just pushed a small update in code and docs to eanble hosting on static platforms (with no node.js support) out of the box. So you should create a new project, npm install, and when your content is ready npm run export. This will create a out directory which you can just deploy on any hosting platform or just serve with any web server. I would still recommend using Vercel though, too easy not to use :)
Hello,
I am a bit confused. I can run
npm run dev:watch
and get something on http://localhost:3000 but how do I export this to static pages ?So I could just copy those pages to apache, nginx, S3, etc. ?
npm run build
seems to build something but the current folder don't have any new files or directory.npm run export
complains about page "/" and says to consult next.js help.Thanks :).
The text was updated successfully, but these errors were encountered: