Flightcontrol

Deploy Nitro apps to AWS via Flightcontrol.

Preset: flight_control

Read more in flightcontrol.dev.

Set up your Flightcontrol account

At a high level, deploying a project for the first time involves these steps:

Create an account at Flightcontrol

Create an account at AWS (if you don't already have one)

Link your AWS account to Flightcontrol

Authorize the Flightcontrol GitHub App to access your chosen repositories, public or private

Create a Flightcontrol project, configured either via the dashboard or via flightcontrol.json

Create a project with configuration via the dashboard

Create a Flightcontrol project from the Dashboard. Select a repository for the source.

Select the GUI config type.

Select the Nuxt preset. This preset also works for any Nitro-based application.

Select your preferred AWS server size.

Submit the new project form.

Create a project with configuration via flightcontrol.json

Create a Flightcontrol project from your dashboard. Select a repository for the source.

Select the flightcontrol.json config type.

Add a new file at the root of your repository called flightcontrol.json. Here is an example configuration that creates an AWS fargate service for your app:

flightcontrol.json
{
  "$schema": "https://app.flightcontrol.dev/schema.json",
  "environments": [
    {
      "id": "production",
      "name": "Production",
      "region": "us-west-2",
      "source": {
        "branch": "main"
      },
      "services": [
        {
          "id": "nitro",
          "buildType": "nixpacks",
          "name": "My Nitro site",
          "type": "fargate",
          "domain": "www.yourdomain.com",
          "outputDirectory": ".output",
          "startCommand": "node .output/server/index.mjs",
          "cpu": 0.25,
          "memory": 0.5
        }
      ]
    }
  ]
}
  1. Submit the new project form.
Learn more about Flightcontrol's configuration.