Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: create-cloudflare with opennextjs-cloudflare deploy script error #7631

Open
Cherry opened this issue Dec 24, 2024 · 1 comment
Open
Labels
bug Something that isn't working

Comments

@Cherry
Copy link
Contributor

Cherry commented Dec 24, 2024

Which Cloudflare product(s) does this pertain to?

C3 (npm create cloudflare)

What versions are you using?

  • C3 2.35.1

What operating system and version are you using?

Windows 11

Please provide a link to a minimal reproduction

No response

Describe the Bug

The next C3 install uses the wrong deploy command.

  • Run npm create cloudflare@latest my-next-app -- --framework=next --experimental
  • Try npm run deploy
  • Observe:
'cloudflare' is not recognized as an internal or external command,
operable program or batch file.

This was changed in opennextjs/opennextjs-cloudflare#166

Please provide any relevant error logs

No response

@Cherry Cherry added the bug Something that isn't working label Dec 24, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Dec 24, 2024
@vicb
Copy link
Contributor

vicb commented Dec 26, 2024

The issue here is that the template has not been updated for @opennextjs/cloudflare 0.3.x.

So the fix is to ping the package to 0.2.x, done in this PR but pending release.

We can either close the issue or keep it open to track the upgrade of the templates.

Note that the updated template is available as a GH repo, see https://opennext.js.org/cloudflare/get-started#new-apps for more info (npm create cloudflare@latest -- --template https://github.com/flarelabs-net/workers-next)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

Successfully merging a pull request may close this issue.

2 participants