Skip to content

fix(templates): improve cli detection in cloudflare template - #15098

Merged
paulpopus merged 1 commit into
payloadcms:mainfrom
rjgtav:rjgtav/fix-templates-cloudflare-cli-detection
Jan 7, 2026
Merged

paulpopus merged 1 commit into
payloadcms:mainfrom
rjgtav:rjgtav/fix-templates-cloudflare-cli-detection

Conversation

@rjgtav

@rjgtav rjgtav commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

What?

Improves the CLI detection in the Cloudflare template

Why?

To also support running scripts via payload run

How?

By looking for Payload's bin.js inside process.argv instead of just looking for the generate/migrate commands.

Discord discussion: https://discord.com/channels/967097582721572934/1439728398405468291

@paulpopus
paulpopus merged commit 5d21ed1 into payloadcms:main Jan 7, 2026
teastudiopl pushed a commit to teastudiopl/payload that referenced this pull request Jan 8, 2026
…cms#15098)

### What?
Improves the CLI detection in the Cloudflare template

### Why?
To also support running scripts via `payload run`

### How?
By looking for Payload's bin.js inside process.argv instead of just
looking for the generate/migrate commands.

Discord discussion:
https://discord.com/channels/967097582721572934/1439728398405468291

Co-authored-by: Ricardo Tavares <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.71.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants