Skip to content

Plugin Options

CloudflarePluginOptions configures the target names inferred by the @naxodev/nx-cloudflare/plugin inference plugin. All options are optional — omitting them applies the defaults.

The plugin is registered in nx.json. Both forms are supported.

{
  "plugins": ["@naxodev/nx-cloudflare/plugin"]
}
{
  "plugins": [
    {
      "plugin": "@naxodev/nx-cloudflare/plugin",
      "options": {
        "serveTargetName": "dev",
        "deployTargetName": "publish",
        "typegenTargetName": "types",
        "versionUploadTargetName": "upload-version",
        "tailTargetName": "logs"
      }
    }
  ]
}
OptionTypeDefaultDescription
serveTargetNamestringserveName for the inferred wrangler dev target.
deployTargetNamestringdeployName for the inferred wrangler deploy target.
typegenTargetNamestringtypegenName for the inferred wrangler types target.
versionUploadTargetNamestringversion-uploadName for the inferred wrangler versions upload target.
tailTargetNamestringtailName for the inferred wrangler tail target.

The application and init generators register the plugin idempotently, matching either the string or object form. Changing target names after projects exist takes effect on the next Nx graph refresh — update any scripts, CI pipelines, or documentation that reference the old names.