-
Notifications
You must be signed in to change notification settings - Fork 102
fix(core): lowercase generated physical names #1257
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
base: main
Are you sure you want to change the base?
Conversation
commit: |
🚀 Website Preview DeployedYour website preview is ready! Preview URL: https://eaa1d5e6-alchemy-website.alchemy-run.workers.dev This preview was built from commit 34379a6 🤖 This comment will be updated automatically when you push new commits to this PR. |
alchemy/src/cloudflare/website.ts
Outdated
| ) { | ||
| const { | ||
| name = Scope.current.createPhysicalName(id), | ||
| name = Scope.current.createPhysicalName(id).toLowerCase(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to do it for all physical names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, good catch - I was being a little too conservative. Will update now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, I really hope this doesn't cause issues for people? Should it be up to each resource to lowercase it, or do we bit the bullet now and apply this blanket across all resources?
Which resources could it cause unnecessary replacements on?
Closes #1251 and addresses a follow-up comment in #1135.
The problem was that while we were lowercasing the default worker generated name for the
Workerresource, we weren't doing that for theWebsiteresource, which affected generated wrangler.jsonc files.