Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

An option to run custom npm scripts with PhusionPassanger for Next.js apps, etc.

Lauris Kuznecovs shared this idea 5 years ago
Open Discussion

As a systems administrator, I would like more friendly node.js support so that when attempting to run apps built with Nuxt.js, Next.js, or etc, the build process is much more simple and streamlined.


-----------------------------

Currently there is Node.js support via PhusinPassanger which is great for Node.js apps only, because it works by using app.js file as entrypoint, but when it comes to React web apps written on very popular frameworks like, Next.js and Nuxt.js then you have to run at least 2 npm/yarn scripts to have app running (build, start).

To run basic Next.js app I have to execute these commands:

npm run build
npm run start

Same case applies to CRA (Create React App), because there is also lots of stuff to build, for example with webpack.

I am really looking forward to have more friendly Node.js support even it additional plugin.

Replies (1)

photo
1

I've also been looking for this and ended up using a not-so-elegant solution in the interim that seems to not work great with next.js's routing.

Leave a Comment
 
Attach a file