You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
rename project names to Worker API accepted values
OR
reject the project name upon generate
Instead one can successfully generate a project with a name not accepted by the API
What did you see instead?
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
added 1 package in 1.181s
β¬οΈ Installing wranglerjs...
β¨ Built successfully, built project size is 517 bytes.
Error: Something went wrong! Status: 400 Bad Request, Details {
"result": null,
"success": false,
"errors": [
{
"code": 10016,
"message": "workers.api.error.invalid_script_name"
}
],
"messages": []
}
We will check that a given worker name is valid by running it against the workers name regex, "^[a-z0-9_][a-z0-9-_]*$". cc @ashleygwilliams@ashleymichal
π Bug Report
Environment
rustc -V
:rustc 1.36.0 (a53f9df32 2019-07-03)
wrangler -V
:π· β¨ wrangler 1.2.0
Steps to reproduce
What did you expect to see?
Wrangler generate should either:
OR
generate
Instead one can successfully generate a project with a name not accepted by the API
What did you see instead?
Original discussion in cloudflare/cloudflare-docs#261
The text was updated successfully, but these errors were encountered: