Nuxt 2 is reaching End-of-Life on June 30th, 2024.
Deploy

Koyeb

Deploy your Nuxt Application to Koyeb infrastructure.

Nuxt supports deploying on the Koyeb serverless platform with minimal configuration.

Setup

  1. Create a new Koyeb app for Nuxt following the guide.
  2. Set the engines.node field in your project's package.json file to a Koyeb-supported version of Node.js:
    package.json
    {
      "engines": {
          "node": "20.x"
      }
    }
    
  3. Ensure that build and start scripts are defined within the project's package.json file to define how to build and run the application:
    package.json
    {
      "scripts": {
          "build": "nuxt build",
          "start": "node .output/server/index.mjs"
      }
    }
    
  4. During deployment, you'll need to configure environment variables. In your service settings, set the following environment variable:
    SERVER_PRESET=koyeb
    
  5. Click "Deploy" to build and deploy your Nuxt app.

Learn more

Head over Nitro documentation to learn more about the Koyeb deployment preset.