We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16fdb2a commit b7bfe73Copy full SHA for b7bfe73
actions/edit-in-v0.ts
@@ -82,6 +82,17 @@ export async function editInV0({
82
// Remove v0 prefix from the name
83
registryItem.name = registryItem.name.replace(/^v0-/, "")
84
85
+ // Replace `@/registry/new-york/` in files.
86
+ registryItem.files = registryItem.files.map((file) => {
87
+ if (file.content?.includes("@/registry/new-york/ui")) {
88
+ file.content = file.content?.replaceAll(
89
+ "@/registry/new-york/ui",
90
+ "@/components/ui"
91
+ )
92
+ }
93
+ return file
94
+ })
95
+
96
const payload = {
97
version: 2,
98
payload: registryItem,
0 commit comments