User Tools

Site Tools


nodejs:nextjs-example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nodejs:nextjs-example [2024/04/06 03:06] kirtisinghnodejs:nextjs-example [2025/04/10 07:04] (current) kirtisingh
Line 1: Line 1:
 ===How to run Next.js on N99panel=== ===How to run Next.js on N99panel===
  
-Here we would provide by an example of how to setup a Next.js app. As Next.js requires NodeJS version 18 or above on the command line, kindly follow the article, [[:nodejs:cli-version|How to change the default version of node or NodeJS CLI for a user]], to set your command line NodeJS version to 18. **Importantly, when you link the App from within N99panel’s console, please use ‘/’ as the value for ‘App Web Path’ . If you plan to run it on sub-url like /app1 , please design your App accordingly.**+Here we would provide by an example of how to setup a Next.js app. As Next.js requires NodeJS version 18 or above on the command line, kindly follow the article, [[:nodejs:cli-version|How to change the default version of node or NodeJS CLI for a user]], to set your command line NodeJS version to 18.  
 + 
 +**Importantly, when you link the App from within N99panel’s console, please use ‘/’ as the value for ‘App Web Path’ . If you plan to run it on sub-url like /app1 , please design your App accordingly.**
  
 The example which we are going to follow in this case is mentioned at https://nextjs.org/learn-pages-router/basics/create-nextjs-app/setup . To properly deploy this Next.js app, we need to take these steps. The example which we are going to follow in this case is mentioned at https://nextjs.org/learn-pages-router/basics/create-nextjs-app/setup . To properly deploy this Next.js app, we need to take these steps.
Line 53: Line 55:
 npm run dev npm run dev
 </code> </code>
 +
 +Imp : //npm run dev// might consume lots of system resources like vCPU and RAM. In some scenarios it may not even complete. Therefore its advisable to use a higher spec VPS than a lower spec VPS.
  
 Now from within N99panel console, link a Node App in [[:nodejs:development-mode|development mode]] using the following values for the concerned fields Now from within N99panel console, link a Node App in [[:nodejs:development-mode|development mode]] using the following values for the concerned fields
nodejs/nextjs-example.1712372767.txt.gz · Last modified: 2024/04/06 03:06 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki