The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
moved Metatags to /tools
Steven Teyb2d5e77bfb74
diff --git a/app/dub.co/metatags/content.tsx b/app/dub.co/tools/metatags/content.tsxsimilarity index 100%rename from app/dub.co/metatags/content.tsxrename to app/dub.co/tools/metatags/content.tsxdiff --git a/app/dub.co/metatags/launch.tsx b/app/dub.co/tools/metatags/launch.tsxsimilarity index 100%rename from app/dub.co/metatags/launch.tsxrename to app/dub.co/tools/metatags/launch.tsxdiff --git a/app/dub.co/metatags/page.tsx b/app/dub.co/tools/metatags/page.tsxsimilarity index 100%rename from app/dub.co/metatags/page.tsxrename to app/dub.co/tools/metatags/page.tsxdiff --git a/app/sitemap.ts b/app/sitemap.tsindex 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.tsxindex 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}><Linkhref={createHref(item.href)}diff --git a/lib/constants/index.ts b/lib/constants/index.tsindex 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.jsindex 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: [