I have a shared hosting provider that enables hosting node apps. It has a restriction that the app entry file must be called app.js
and it must be in folder /usr/home/username/domains/domain/public_nodeapp
. The app is started automatically (probably by something like node app.js
) upon first access from the web to the domain.
Is it possible to host a next.js
app on such a provider as a server-side rendered app (not as static HTML site produced by next export
)?
After running next build
which makes a production version of the app, the production version has no app.js
file and should be started by next start
. I am not sure whether and how it could be tweaked (perhaps some file moving or renaming) to match the restrictions mentioned above.