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
-
Add Dockerfile here to your project.
-
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.