mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #159] [MERGED] fix: lowercase package name before sanitizing Worker name #359
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#359
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/159
Author: @StringerBell69
Created: 2/27/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @southpolesteve
Base:
main← Head:fix/deploy-name-sanitization📝 Commits (2)
e04a914fix: lowercase package name before sanitizing Worker name3ac7ea3test: assert exact sanitized project name value📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
packages/vinext/src/deploy.ts(+1 -0)📝
tests/deploy.test.ts(+1 -2)📄 Description
Problem:
The project name sanitization in deploy.ts replaces characters not matching [a-z0-9-] with hyphens, but doesn't lowercase the name first. This causes uppercase letters to be replaced with hyphens, so a name like "restaurant-SABORES DE PORTUGAL" becomes "restaurant" instead of "restaurant-sabores-de-portugal".
Fix: Add .toLowerCase() before the regex replacement so uppercase letters are preserved as lowercase.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.