To deploy a Nuxt application in Coolify using Nixpacks, follow these steps:
- Create a
nixpacks.toml file in your project root to specify the Nixpacks configuration. - In the Coolify dashboard, select
Nixpacks as the Build Pack. - Set Ports Exposed to
3000 (or your application's port). - Set the Start Command to
node .output/server/index.mjs.
Tip: Instead of manually setting the Start Command in Coolify, you can add a start script to your package.json:
"scripts": {
"start": "node .output/server/index.mjs"
}
Nixpacks will automatically detect and use this command.
[phases.setup]
nixpkgsArchive = '51ad838b03a05b1de6f9f2a0fffecee64a9788ee'