DigitalOcean

Preset: digitalocean (switch to this preset)

Nitro supports deploying on the Digital Ocean App Platform with minimal configuration.

Set up application

  1. Create a new Digital Ocean app following the guide.

  2. Next, you’ll need to configure environment variables. In your app settings, ensure the following app-level environment variables are set:

    1. NITRO_PRESET=digital-ocean

    More information.

  3. Finally, you will need to ensure you set an engines.node field in your app’s package.json to ensure Digital Ocean uses a supported version of Node.js:

    1. {
    2. "engines": {
    3. "node": "16.x"
    4. }
    5. }

    See more information.

You can now follow the rest of the Digital Ocean deployment guide.