Deploy
Koyeb
Deploy your Nuxt Application to Koyeb infrastructure.
Nuxt supports deploying on the Koyeb serverless platform with minimal configuration.
Setup
- Create a new Koyeb app for Nuxt following the guide.
- Set the
engines.node
field in your project'spackage.json
file to a Koyeb-supported version of Node.js:package.json{ "engines": { "node": "20.x" } }
- Ensure that
build
andstart
scripts are defined within the project'spackage.json
file to define how to build and run the application:package.json{ "scripts": { "build": "nuxt build", "start": "node .output/server/index.mjs" } }
- During deployment, you'll need to configure environment variables. In your service settings, set the following environment variable:
SERVER_PRESET=koyeb
- Click "Deploy" to build and deploy your Nuxt app.