0

I'm using Next.js for the first time, after using CRA for a long time. I exported the project with npm run build but it sounds more complicated to send to my server.

My Apache server and domains are managed on Ionos (ex One&One). I have no skills in Node.js, and I thought I had to send the build folder to my server as I did with CRA apps. I also tried to see if I could send my Next.js app to my server with the help of Vercel, but I didn't see anything about it.

I found this question, but there's no answer yet.

halfer
  • 19,824
  • 17
  • 99
  • 186
  • Is there a specific problem you are getting when you try to deploy your app? Perhaps, do you get an error? Might it be worth a try to use the way you used to use with CRA apps? – halfer Aug 14 '22 at 18:41
  • 1
    `"build": "next build && next export"` - will export to the default `out` folder, the static pages get exported to .html files. – anjanesh Aug 14 '22 at 18:41

2 Answers2

2

IONOS offers a similar approach to Vercel and Netlify named Deploy Now that offers static hosting for NextJS as well. Maybe that meets your requirements already. But it doesn't offer a NodeJS runtime for using NextJS in a SSR or hybrid variant.

1

I deployed my website with Vercel, with a custom domain from Ionos. That was that easy! Thanks !