Skip to content

Commit 3e6c9f1

Browse files
authored
fix url (#122)
* fix url * add missing fields
1 parent b2dd3dd commit 3e6c9f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/workflows/[workflowId]/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export async function generateMetadata({
3939
// Ignore errors, use defaults
4040
}
4141

42-
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || "https://workflow.new";
42+
const baseUrl =
43+
process.env.NEXT_PUBLIC_APP_URL || "https://workflow-builder.dev";
44+
const workflowUrl = `${baseUrl}/workflows/${workflowId}`;
4345
const ogImageUrl = isPublic
4446
? `${baseUrl}/api/og/workflow/${workflowId}`
4547
: `${baseUrl}/og-default.png`;
@@ -51,6 +53,8 @@ export async function generateMetadata({
5153
title: `${title} | AI Workflow Builder`,
5254
description: `View and explore the "${title}" workflow built with AI Workflow Builder.`,
5355
type: "website",
56+
url: workflowUrl,
57+
siteName: "AI Workflow Builder",
5458
images: [
5559
{
5660
url: ogImageUrl,

0 commit comments

Comments
 (0)