Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: move og image route out of api

Generbe8a1beba428
diff --git a/src/web/src/app/(auth)/layout.tsx b/src/web/src/app/(auth)/layout.tsx
index e78c6c0c9..c140de710 100644
--- a/src/web/src/app/(auth)/layout.tsx
+++ b/src/web/src/app/(auth)/layout.tsx
@@ -6,7 +6,7 @@ export const metadata: Metadata = {
title: "Sign In",
description: "Sign in to manage your Your Personal Company on Alook.",
openGraph: {
- images: [{ url: "/api/og?title=Sign In", width: 1200, height: 630 }],
+ images: [{ url: "/og?title=Sign In", width: 1200, height: 630 }],
},
};
diff --git a/src/web/src/app/layout.tsx b/src/web/src/app/layout.tsx
index da89ecf60..6920476b0 100644
--- a/src/web/src/app/layout.tsx
+++ b/src/web/src/app/layout.tsx
@@ -51,6 +51,7 @@ const literata = Literata({
const SITE_URL = "https://alook.ai";
+const OG_IMAGE_URL = "/og?title=Your Personal Company";
export const viewport: Viewport = {
width: "device-width",
@@ -93,7 +94,7 @@ export const metadata: Metadata = {
url: SITE_URL,
images: [
{
- url: "/api/og?title=Your Personal Company",
+ url: OG_IMAGE_URL,
width: 1200,
height: 630,
alt: "Alook — Your Personal Company",
@@ -105,7 +106,7 @@ export const metadata: Metadata = {
title: "Alook — Your Personal Company",
description:
"Your AI agents, always on. Give them an email, let them work for you around the clock.",
- images: ["/api/og?title=Your Personal Company"],
+ images: [OG_IMAGE_URL],
},
alternates: {
canonical: SITE_URL,
diff --git a/src/web/src/app/api/og/route.tsx b/src/web/src/app/og/route.tsx
similarity index 100%
rename from src/web/src/app/api/og/route.tsx
rename to src/web/src/app/og/route.tsx
diff --git a/src/web/src/app/robots.ts b/src/web/src/app/robots.ts
index 06590e9ec..e2eb3c76f 100644
--- a/src/web/src/app/robots.ts
+++ b/src/web/src/app/robots.ts
@@ -5,7 +5,7 @@ export default function robots(): MetadataRoute.Robots {
rules: [
{
userAgent: "*",
- allow: ["/", "/api/og"],
+ allow: "/",
disallow: ["/w/", "/workspaces", "/api/"],
},
],