Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

moved Metatags to /tools

Steven Teyb2d5e77bfb74
diff --git a/app/dub.co/metatags/content.tsx b/app/dub.co/tools/metatags/content.tsx
similarity index 100%
rename from app/dub.co/metatags/content.tsx
rename to app/dub.co/tools/metatags/content.tsx
diff --git a/app/dub.co/metatags/launch.tsx b/app/dub.co/tools/metatags/launch.tsx
similarity index 100%
rename from app/dub.co/metatags/launch.tsx
rename to app/dub.co/tools/metatags/launch.tsx
diff --git a/app/dub.co/metatags/page.tsx b/app/dub.co/tools/metatags/page.tsx
similarity index 100%
rename from app/dub.co/metatags/page.tsx
rename to app/dub.co/tools/metatags/page.tsx
diff --git a/app/sitemap.ts b/app/sitemap.ts
index 0fec1bdd1a..079e5c911f 100644
--- a/app/sitemap.ts
+++ b/app/sitemap.ts
@@ -6,7 +6,7 @@ import {
allHelpPosts,
allLegalPosts,
} from "contentlayer/generated";
-import { isHomeHostname } from "#/lib/constants";
+import { isHomeHostname, allTools } from "#/lib/constants";
import { BLOG_CATEGORIES, HELP_CATEGORIES } from "#/lib/constants/content";
export default async function Sitemap() {
@@ -72,10 +72,10 @@ export default async function Sitemap() {
url: `https://${domain}/changelog/${post.slug}`,
lastModified: new Date(post.publishedAt),
})),
- {
- url: `https://${domain}/metatags`,
+ ...allTools.map((tool) => ({
+ url: `https://${domain}/${tool}`,
lastModified: new Date(),
- },
+ })),
...allLegalPosts.map((post) => ({
url: `https://${domain}/${post.slug}`,
lastModified: new Date(post.updatedAt),
diff --git a/app/ui/home/footer.tsx b/app/ui/home/footer.tsx
index 41c50255c4..b944b93ba5 100644
--- a/app/ui/home/footer.tsx
+++ b/app/ui/home/footer.tsx
@@ -11,12 +11,13 @@ const navigation = {
product: [
{ name: "Pricing", href: "/pricing" },
{ name: "Changelog", href: "/changelog" },
- ],
- company: [{ name: "Blog", href: "/blog" }],
- resources: [
{ name: "Help Center", href: "/help" },
- { name: "Metatags API", href: "/metatags" },
],
+ company: [
+ { name: "Blog", href: "/blog" },
+ // { name: "About", href: "/about" },
+ ],
+ tools: [{ name: "Metatags API", href: "/tools/metatags" }],
legal: [
{ name: "Privacy", href: "/privacy" },
{ name: "Terms", href: "/terms" },
@@ -135,11 +136,9 @@ export default function Footer() {
</div>
<div className="md:grid md:grid-cols-2 md:gap-8">
<div>
- <h3 className="text-sm font-semibold text-gray-600">
- Resources
- </h3>
+ <h3 className="text-sm font-semibold text-gray-600">Tools</h3>
<ul role="list" className="mt-4 space-y-4">
- {navigation.resources.map((item) => (
+ {navigation.tools.map((item) => (
<li key={item.name}>
<Link
href={createHref(item.href)}
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 16562df167..0b306846b7 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -119,7 +119,7 @@ export const DUB_THUMBNAIL =
"https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png";
export const SHOW_BACKGROUND_SEGMENTS = new Set([
- "metatags",
+ "tools",
"pricing",
"help",
"blog",
@@ -129,6 +129,8 @@ export const SHOW_BACKGROUND_SEGMENTS = new Set([
"auth",
]);
+export const allTools = ["metatags"];
+
export { default as COUNTRIES } from "./countries";
export { default as ccTLDs } from "./cctlds";
diff --git a/next.config.js b/next.config.js
index 95900c10ff..06786ff7c8 100644
--- a/next.config.js
+++ b/next.config.js
@@ -5,7 +5,7 @@ const REDIRECT_SEGMENTS = [
"blog",
"help",
"changelog",
- "metatags",
+ "tools",
"stats",
"_static",
];
@@ -113,6 +113,28 @@ const nextConfig = {
}
),
),
+ {
+ source: "/metatags",
+ has: [
+ {
+ type: "host",
+ value: "dub.sh",
+ },
+ ],
+ destination: "https://dub.co/tools/metatags",
+ permanent: true,
+ },
+ {
+ source: "/metatags",
+ has: [
+ {
+ type: "host",
+ value: "dub.co",
+ },
+ ],
+ destination: "/tools/metatags",
+ permanent: true,
+ },
{
source: "/",
has: [