Skip to content

Commit

Permalink
fix: v0
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Oct 7, 2024
1 parent 36ebbf2 commit 1297abc
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 1297abc

Please sign in to comment.