Full Stack App Deploy

Hello, I just wanted to ask, is it possible to host a Next.js full stack application (that would require running a build command when deployed) website on InfinityFree for free? I am able to get myself comfortable with hosting static websites, but I wanted to step up my game a bit. If it is possible to deploy such full stack apps (just like I do with Netlify at the moment), please let me know how!

I don’t belive so. Because its not possible to get command line access to run the build command, and the only server side language on Infinity Free supports is PHP.

But I could be wrong I’ve never used Next.js

3 Likes

Thanks for your reply. If anyone else has experience I would be happy to hear it.

You can use Next.js on our hosting, but you have to know that we don’t have Node.js on our servers. This means that there are a few limitations to keep in mind:

  • You can’t build the project on our servers. You need to run the build step somewhere else (like on your own computer, or on a CI/CD system), and upload the generated files here.
  • You will not be able to use any of the server side features of Next.js, because you will not be able to run the server side part on our hosting.

Essentially, you can follow the static export route from Next.js to build your site and upload it to our hosting. If you do want any server side functionality, you’ll have to do it with PHP.

7 Likes