mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
fix: v0
This commit is contained in:
@@ -37,6 +37,9 @@ export async function editInV0({
|
||||
// v0 will handle this for us.
|
||||
// code = code.replace(`"use client"`, "")
|
||||
|
||||
// Remove export const description = "..."
|
||||
code = code.replace(/export const description =\s*".*";?/, "")
|
||||
|
||||
const payload = {
|
||||
title,
|
||||
description,
|
||||
|
||||
Reference in New Issue
Block a user