Deploy a .next app in cyberpanel

Hello, is there any tutorial on how to run a next.js app on cyberpanel?

Hello @Diego

Have a look at this

If you are not deploying a SSG or static export you can use pm2 to deploy the app

$ pm2 start pnpm --name "your-ssr-name" -- start

OR even better use a docker image where you can run it with all batteries included

$ npx create-next-app@latest
# OR whichever version you want to use
  1. Add Dockerfile here to your project.

  2. Add the following to the next.config.js file:

// next.config.js
module.exports = {
  // ... rest of the configuration.
  output: 'standalone',

This will build the project as a standalone app inside the Docker image.