Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Deploy the Node JS app having nodejs version greater than 18.16.0 #702

Open
shriekdj opened this issue Jan 17, 2024 · 5 comments

Comments

@shriekdj
Copy link

The iisnode works only on nodejs version 18.16.0 and below.

I Tried to deploy the nodejs app but it doesn't work at all.

@Fiontan
Copy link

Fiontan commented Feb 1, 2024

Currently researching if this tool can enable us to serve next.js AppRouter from IIS, we using latest node version..

@shriekdj
Copy link
Author

shriekdj commented Feb 5, 2024

@Fiontan , I'm currently already implemented this using the app router from Next.js, which is integrated within a custom server.js file written in Express.js. This setup is being hosted using iisnode. However, I've encountered stability issues when using iisnode with the app router; it only works reliably with Next.js versions up to 13.4.6, but not with later versions.

I am looking to upgrade to Next.js 14, but I'm facing challenges because it requires Node.js version 20 or higher. When I try to run it with these requirements, the above mentioned issue with iisnode arises.

@Fiontan
Copy link

Fiontan commented Aug 20, 2024

@shriekdj thanks for getting back and apologies for the delayed response- regarding node version compatibility, that's unfortunate and I am looking to go with next.js latest too. Did you manage a resolution I the end? I'm going to check next issues for a match...

@shriekdj
Copy link
Author

@Fiontan Currently i am using the reverse proxy method to run site with iis. but still the iisnode method is more native and easier to handle.

If you need any help related to solving issue you can also tag me i will try to find the solution with you.

@lextm
Copy link

lextm commented Nov 7, 2024

HttpPlatformHandler is simpler to configure than iisnode/reverse proxy, and independent of Node.js/Next.js versions. So you might give that a try. Read Azure#146 for more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants