The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
improved search accuracy, started working on What is Dub article
Steven Tey5d3ab5084d79
diff --git a/app/ui/cmdk.tsx b/app/ui/cmdk.tsxindex ae809f660c..ab262c6d0d 100644--- a/app/ui/cmdk.tsx+++ b/app/ui/cmdk.tsx@@ -30,23 +30,31 @@ function CMDKHelper({setShowModal={setShowCMDK}className="sm:max-w-xl">- <Command label="CMDK" loop>+ <Command+ label="CMDK"+ loop+ filter={(value, search) => {+ if (value.includes(search.toLowerCase())) return 1;+ return 0;+ }}+ ><Command.InputautoFocusplaceholder="Search articles, guides, and more..."className="w-full border-none p-4 font-normal placeholder-gray-400 focus:outline-none focus:ring-0"/><Command.List className="h-[50vh] max-h-[360px] min-h-[250px] overflow-scroll border-t border-gray-200 p-2 transition-all scrollbar-hide sm:h-[calc(var(--cmdk-list-height)+10rem)]">- <Command.Empty className="flex items-center space-x-2 rounded-md bg-gray-100 px-4 py-2 text-sm text-gray-600">+ <Command.Empty className="flex cursor-not-allowed items-center space-x-2 rounded-md bg-gray-100 px-4 py-2 text-sm text-gray-600"><Magic className="h-4 w-4 text-gray-400" /><div className="flex flex-col space-y-1">- <p className="text-sm font-medium text-purple-600">Ask AI</p>+ <p className="text-sm font-medium text-purple-600">+ Ask AI (Coming soon)+ </p><p className="text-xs text-gray-400">Use our AI to find answers to your questions</p></div></Command.Empty>-<CommandResults setShowCMDK={setShowCMDK} /></Command.List></Command>diff --git a/app/ui/home/pricing.tsx b/app/ui/home/pricing.tsxindex 0ce577990f..cbf6fe3a24 100644--- a/app/ui/home/pricing.tsx+++ b/app/ui/home/pricing.tsx@@ -42,6 +42,10 @@ const pricingItems = [text: "Custom QR Code Logo",negative: true,},+ {+ text: "API Access",+ negative: true,+ },{ text: "SSO/SAML", negative: true },{ text: "Priority support", negative: true },],@@ -74,6 +78,10 @@ const pricingItems = [{text: "Custom QR Code Logo",},+ {+ text: "API Access",+ footnote: "Under development. ETA: September 2023",+ },{ text: "SSO/SAML", negative: true },{ text: "Priority support", negative: true },],@@ -106,6 +114,10 @@ const pricingItems = [{text: "Custom QR Code Logo",},+ {+ text: "API Access",+ footnote: "Under development. ETA: September 2023",+ },{ text: "SSO/SAML", footnote: "Under development. ETA: Q4 2023" },{text: "Priority support",diff --git a/components/app/modals/upgrade-plan-modal.tsx b/components/app/modals/upgrade-plan-modal.tsxindex 39337b3b42..2bbc142760 100644--- a/components/app/modals/upgrade-plan-modal.tsx+++ b/components/app/modals/upgrade-plan-modal.tsx@@ -40,6 +40,7 @@ function UpgradePlanModal({"Unlimited link history","Redirect your root domain","Custom QR Code logo",+ "API Access (ETA Sep 2023)",...(plan === "Enterprise" ? ["SSO/SAML", "Priority support"] : []),];}, [plan]);diff --git a/content/help/dub-api.mdx b/content/help/dub-api.mdxindex 3b81fa4182..27ed082759 100644--- a/content/help/dub-api.mdx+++ b/content/help/dub-api.mdx@@ -7,6 +7,6 @@ categories:- api----No, Dub does not have an API yet, but it is planned for the future.+No, Dub does not have an API yet, but it is [planned for the September 2023](https://github.com/steven-tey/dub/issues/73#issuecomment-1638409034).If you would like to be notified when the API is available, please [sign up for the waitlist](https://tally.so/r/wdN50V).diff --git a/content/help/how-to-redirect-root-domain.mdx b/content/help/how-to-redirect-root-domain.mdxindex 4e46eb58f2..85a034de94 100644--- a/content/help/how-to-redirect-root-domain.mdx+++ b/content/help/how-to-redirect-root-domain.mdx@@ -36,4 +36,28 @@ To redirect your domain to a URL of your choice, follow these steps:## Rewriting your domain (URL masking / cloaking)-If you want to rewrite your domain (also known as URL masking or cloaking), you can do so by following the same steps+In certain cases, you might want to rewrite your domain to a given URL (also known as URL masking or cloaking).++<Image+ alt="Rewriting 'steven.yt' to 'youtube.com/@stey'"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/rewrite-domain-example.png"+ width={811}+ height={525}+/>++You can do that simply by setting the **Behavior** field of your custom domain to "Rewrite" in the Domain Settings modal:++<Image+ alt="Setting the behavior of a domain to 'Rewrite'"+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/rewrite-domain-modal.png"+ width={1182}+ height={697}+/>++A few caveats for the URL masking feature:++1. This feature is only available for [Pro plans and above](pro-plan).+2. URL masking might not work for certain websites that have security measures in place to prevent this (e.g. `twitter.com`). Potential errors include:+ - The domain redirects instead of rewriting+ - Domain keeps redirecting (`ERR_TOO_MANY_REDIRECTS`)+3. For certain [Next.js](https://nextjs.org/) websites, URL masking might cause broken CSS styles (e.g. `ray.so`)diff --git a/content/help/what-is-dub.mdx b/content/help/what-is-dub.mdxindex 564266bce5..9062aafc99 100644--- a/content/help/what-is-dub.mdx+++ b/content/help/what-is-dub.mdx@@ -5,9 +5,14 @@ summary: How Dub works, what it can do for your business and what makes it diffeauthor: steventeycategories:- overview+related:+ - what-is-a-project+ - how-to-create-link+ - how-to-add-custom-domain+ - pro-plan----[Dub](https://dub.sh) is the link management tool for modern marketing teams. Shorten and track all your links, and gain powerful insights into your marketing efforts.+Dub is the link management tool for modern marketing teams. With Dub, you can create, share, and track short links using your own [custom domain](how-to-add-custom-domain).## What can I do with Dub?@@ -24,3 +29,8 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl ege## How is Dub different?Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget fermentum aliquam, ipsum nibh ultricies nunc, quis aliquam nunc nisl quis nunc. Donec euismod, nisl eget fermentum aliquam, ipsum nibh ultricies nunc, quis aliquam nunc nisl quis nunc.++<Note variant="info">+ Fun fact: Dub's name comes from the word "dub" which means to give a title or+ nickname to someone or something – which is apt for a link management tool!+</Note>