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.
Registration
Section titled “Registration”The plugin is registered in nx.json. Both forms are supported.
String form (defaults only)
Section titled “String form (defaults only)”{
"plugins": ["@naxodev/nx-cloudflare/plugin"]
}
Object form (custom target names)
Section titled “Object form (custom target names)”{
"plugins": [
{
"plugin": "@naxodev/nx-cloudflare/plugin",
"options": {
"serveTargetName": "dev",
"deployTargetName": "publish",
"typegenTargetName": "types",
"versionUploadTargetName": "upload-version",
"tailTargetName": "logs"
}
}
]
}
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
serveTargetName | string | serve | Name for the inferred wrangler dev target. |
deployTargetName | string | deploy | Name for the inferred wrangler deploy target. |
typegenTargetName | string | typegen | Name for the inferred wrangler types target. |
versionUploadTargetName | string | version-upload | Name for the inferred wrangler versions upload target. |
tailTargetName | string | tail | Name 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.
Next steps
Section titled “Next steps”- Inferred targets —
serve,deploy,typegen,version-upload,tail - Wrangler config — config formats and inference
- application generator — scaffold a Worker application