Skip to content

Commit

Permalink
Merge pull request #2 from shadcn-ui/main
Browse files Browse the repository at this point in the history
fix: v0
  • Loading branch information
kewldan authored Oct 16, 2024
2 parents 3d3e0c8 + 1297abc commit 46936cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/www/actions/edit-in-v0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 46936cc

Please sign in to comment.