{
  "manifest_version": "1.0.0",
  "template": {
    "id": "996d9ae5-54cd-472d-97e5-0b60e45e2410",
    "slug": "nextjs16-with-mongodb-and-better-auth",
    "name": "NextJS16 with MongoDB and better-auth",
    "description": "NextJS with best practices and screaming architecture",
    "url": "https://railway.com/deploy/nextjs16-with-mongodb-and-better-auth",
    "upstream": {
      "repo_url": "https://github.com/contourkde/nextjs16-screaming-architecture"
    }
  },
  "services": [
    {
      "name": "nextjs16-screaming-architecture",
      "source": {
        "repo": "https://github.com/contourkde/nextjs16-screaming-architecture"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/storage",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "nextjs16-screaming-architecture",
      "description": "You can use openssl rand -base64 32 to generate one.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nextjs16-with-mongodb-and-better-auth"
      }
    },
    "cli": "railway deploy --template nextjs16-with-mongodb-and-better-auth",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "996d9ae5-54cd-472d-97e5-0b60e45e2410",
            "serializedConfig": {
              "services": {
                "c115f897-d174-4c38-95a7-08766b32b64e": {
                  "icon": "https://devicons.railway.com/i/nextjs-dark.svg",
                  "name": "nextjs16-screaming-architecture",
                  "source": {
                    "repo": "contourkde/nextjs16-screaming-architecture",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "MONGODB_URI": {
                      "isOptional": true,
                      "description": "Mongo DB connection URL, you need it if you will connect MongoDB",
                      "defaultValue": ""
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "You can use openssl rand -base64 32 to generate one.",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    }
                  },
                  "volumeMounts": {
                    "c115f897-d174-4c38-95a7-08766b32b64e": {
                      "mountPath": "/app/storage",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T10:57:53.329Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7049bb21d86346959270",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
