The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
started working on guide
Steven Teya07cefb537fc
diff --git a/README.md b/README.mdindex e82828bc2f..24e99df461 100644--- a/README.md+++ b/README.md@@ -28,7 +28,7 @@## Introduction-Dub is an open-source link management tool for modern marketing teams to create, share, and track short links.+Dub.co is the open-source link management infrastructure for modern marketing teams.## Features@@ -64,6 +64,7 @@ We're planning to add a proper, well-documented self-hosting guide for Dub soon- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SSO/SAML- [Turborepo](https://turbo.build/repo) – monorepo- [Stripe](https://stripe.com/) – payments+- [Resend](https://resend.com/) – emails- [Vercel](https://vercel.com/) – deployments## Contributingdiff --git a/apps/docs/images/hero-dark.svg b/apps/docs/images/hero-dark.svgdeleted file mode 100644index 59ab097581..0000000000--- a/apps/docs/images/hero-dark.svg+++ /dev/null@@ -1,136 +0,0 @@-<svg width="700" height="320" viewBox="0 0 700 320" fill="none" xmlns="http://www.w3.org/2000/svg">-<g clip-path="url(#clip0_39_1471)">-<rect width="700" height="320" rx="16" fill="#090014"/>-<rect width="700" height="320" rx="16" fill="url(#paint0_linear_39_1471)"/>-<g opacity="0.8" filter="url(#filter0_f_39_1471)">-<circle cx="660" cy="-60" r="160" fill="#7000FF" fill-opacity="0.31"/>-</g>-<g opacity="0.8" filter="url(#filter1_f_39_1471)">-<circle cx="20" cy="213" r="160" fill="#C01BDB" fill-opacity="0.33"/>-</g>-<g opacity="0.8" filter="url(#filter2_f_39_1471)">-<circle cx="660" cy="480" r="160" fill="#B010B4" fill-opacity="0.52"/>-</g>-<g opacity="0.8" filter="url(#filter3_f_39_1471)">-<circle cx="20" cy="413" r="160" fill="#FF0000" fill-opacity="0.22"/>-</g>-<path d="M386.015 53.2223L392.803 66.8421C395.854 72.9431 402.943 75.8647 409.43 73.7164L438.474 64.0064C439.076 63.7916 439.72 63.7057 440.365 63.7057C443.63 63.7057 446.294 66.3695 446.294 69.6348C446.294 70.2793 446.208 70.9237 445.993 71.5252L436.326 100.569C434.135 107.057 437.1 114.146 443.201 117.197L456.777 123.985C458.754 124.973 460 126.992 460 129.227C460 131.246 458.969 133.136 457.25 134.211L415.188 160.462C412.223 162.309 413.555 166.821 416.992 166.821H433.448C436.713 166.821 439.377 169.484 439.377 172.75C439.377 173.394 439.291 174.039 439.076 174.64L435.424 185.596C433.662 190.881 435.252 196.724 439.506 200.376L454.285 213.008C455.746 214.253 456.606 216.101 456.606 218.034C456.606 220.44 455.317 222.632 453.254 223.792L440.838 230.881C435.854 233.716 433.147 239.388 434.092 245.059L435.897 255.843C435.94 256.101 435.983 256.402 435.983 256.66C435.983 259.925 432.889 262.288 429.71 261.472L363.115 244.114C359.635 243.169 356.025 245.145 354.865 248.582L351.213 259.495C350.483 261.643 348.507 263.104 346.23 263.104C344.296 263.104 342.578 262.073 341.632 260.397L313.964 210.603L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029C238.99 262.932 238.99 256.402 243.029 252.406L299.357 196.057L249.602 168.41C247.927 167.465 246.896 165.704 246.896 163.813C246.896 161.536 248.356 159.56 250.505 158.829L261.418 155.177C264.855 154.06 266.788 150.451 265.886 146.928L248.528 80.333C247.669 77.1536 250.075 74.0602 253.34 74.0602C253.598 74.0602 253.899 74.1031 254.157 74.1461L264.941 75.9076C270.612 76.8528 276.283 74.189 279.162 69.1622L286.208 56.7454C287.411 54.7261 289.602 53.4372 291.965 53.4372C293.899 53.4372 295.746 54.2965 296.992 55.7573L309.581 70.4941C313.233 74.7046 319.076 76.3373 324.361 74.5757L335.317 70.9237C335.961 70.7089 336.563 70.623 337.207 70.623C340.472 70.623 343.136 73.2868 343.136 76.5521V93.0075C343.136 96.4447 347.647 97.7336 349.495 94.812L375.789 52.7497C376.863 51.0311 378.754 50 380.773 50C383.007 50 385.027 51.246 386.015 53.2223Z" fill="url(#paint1_radial_39_1471)"/>-<path d="M386.015 53.2223L392.803 66.8421C395.854 72.9431 402.943 75.8647 409.43 73.7164L438.474 64.0064C439.076 63.7916 439.72 63.7057 440.365 63.7057C443.63 63.7057 446.294 66.3695 446.294 69.6348C446.294 70.2793 446.208 70.9237 445.993 71.5252L436.326 100.569C434.135 107.057 437.1 114.146 443.201 117.197L456.777 123.985C458.754 124.973 460 126.992 460 129.227C460 131.246 458.969 133.136 457.25 134.211L415.188 160.462C412.223 162.309 413.555 166.821 416.992 166.821H433.448C436.713 166.821 439.377 169.484 439.377 172.75C439.377 173.394 439.291 174.039 439.076 174.64L435.424 185.596C433.662 190.881 435.252 196.724 439.506 200.376L454.285 213.008C455.746 214.253 456.606 216.101 456.606 218.034C456.606 220.44 455.317 222.632 453.254 223.792L440.838 230.881C435.854 233.716 433.147 239.388 434.092 245.059L435.897 255.843C435.94 256.101 435.983 256.402 435.983 256.66C435.983 259.925 432.889 262.288 429.71 261.472L363.115 244.114C359.635 243.169 356.025 245.145 354.865 248.582L351.213 259.495C350.483 261.643 348.507 263.104 346.23 263.104C344.296 263.104 342.578 262.073 341.632 260.397L313.964 210.603L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029C238.99 262.932 238.99 256.402 243.029 252.406L299.357 196.057L249.602 168.41C247.927 167.465 246.896 165.704 246.896 163.813C246.896 161.536 248.356 159.56 250.505 158.829L261.418 155.177C264.855 154.06 266.788 150.451 265.886 146.928L248.528 80.333C247.669 77.1536 250.075 74.0602 253.34 74.0602C253.598 74.0602 253.899 74.1031 254.157 74.1461L264.941 75.9076C270.612 76.8528 276.283 74.189 279.162 69.1622L286.208 56.7454C287.411 54.7261 289.602 53.4372 291.965 53.4372C293.899 53.4372 295.746 54.2965 296.992 55.7573L309.581 70.4941C313.233 74.7046 319.076 76.3373 324.361 74.5757L335.317 70.9237C335.961 70.7089 336.563 70.623 337.207 70.623C340.472 70.623 343.136 73.2868 343.136 76.5521V93.0075C343.136 96.4447 347.647 97.7336 349.495 94.812L375.789 52.7497C376.863 51.0311 378.754 50 380.773 50C383.007 50 385.027 51.246 386.015 53.2223Z" fill="url(#paint2_radial_39_1471)"/>-<path d="M243.029 266.971C238.99 262.932 238.99 256.402 243.029 252.406L360.279 135.113C364.318 131.074 370.849 131.074 374.844 135.113C378.84 139.151 378.883 145.682 374.844 149.678L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029Z" fill="url(#paint3_linear_39_1471)"/>-<circle opacity="0.5" cx="350" cy="160" r="111" stroke="url(#paint4_radial_39_1471)"/>-<circle opacity="0.5" cx="350" cy="160" r="79" stroke="url(#paint5_radial_39_1471)"/>-<path opacity="0.4" d="M511 321L189 -1" stroke="url(#paint6_radial_39_1471)"/>-<path opacity="0.6" d="M189 321L511 -1" stroke="url(#paint7_radial_39_1471)"/>-<path opacity="0.4" d="M0 160H700" stroke="url(#paint8_radial_39_1471)"/>-<path opacity="0.2" d="M271 0L271 320" stroke="url(#paint9_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M461 0L461 320" stroke="url(#paint10_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M350 0L350 320" stroke="url(#paint11_radial_39_1471)"/>-<path opacity="0.2" d="M429 0L429 320" stroke="url(#paint12_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M239 0L239 320" stroke="url(#paint13_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M0 50H700" stroke="url(#paint14_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M0 82H700" stroke="url(#paint15_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M0 271H700" stroke="url(#paint16_radial_39_1471)" stroke-dasharray="4 4"/>-<path opacity="0.2" d="M0 239H700" stroke="url(#paint17_radial_39_1471)" stroke-dasharray="4 4"/>-</g>-<defs>-<filter id="filter0_f_39_1471" x="260" y="-460" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1471"/>-</filter>-<filter id="filter1_f_39_1471" x="-380" y="-187" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1471"/>-</filter>-<filter id="filter2_f_39_1471" x="260" y="80" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1471"/>-</filter>-<filter id="filter3_f_39_1471" x="-380" y="13" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1471"/>-</filter>-<linearGradient id="paint0_linear_39_1471" x1="1.04308e-05" y1="320" x2="710.784" y2="26.0793" gradientUnits="userSpaceOnUse">-<stop stop-color="#F3003A" stop-opacity="0.09"/>-<stop offset="0.729167" stop-color="#951168" stop-opacity="0.08"/>-</linearGradient>-<radialGradient id="paint1_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(240 270) rotate(-47.3279) scale(870.459 870.459)">-<stop stop-color="#AA82FF"/>-<stop offset="0.168642" stop-color="#AA82FF"/>-<stop offset="0.386895" stop-color="#7E42FF" stop-opacity="0"/>-<stop offset="1" stop-color="#7E42FF" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint2_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(250 255) rotate(-41.7108) scale(308.099 308.099)">-<stop offset="0.218594" stop-color="#FF7246" stop-opacity="0.73"/>-<stop offset="1" stop-color="#A073FF" stop-opacity="0"/>-</radialGradient>-<linearGradient id="paint3_linear_39_1471" x1="384" y1="144" x2="252" y2="270" gradientUnits="userSpaceOnUse">-<stop offset="0.0717997" stop-color="#672191"/>-<stop offset="0.45027" stop-color="#C963CB"/>-<stop offset="0.675676" stop-color="#FB695F"/>-<stop offset="1" stop-color="#EB0331"/>-</linearGradient>-<radialGradient id="paint4_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(263 76) rotate(47.663) scale(243.508)">-<stop stop-color="#7219B7"/>-<stop offset="1" stop-color="#CD07AD"/>-</radialGradient>-<radialGradient id="paint5_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(288.081 100.216) rotate(47.663) scale(173.307)">-<stop stop-color="#FD22D9"/>-<stop offset="1" stop-color="#FFDDF9" stop-opacity="0.47"/>-</radialGradient>-<radialGradient id="paint6_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(-135) scale(258.996 182)">-<stop offset="0.0989011" stop-color="#770064"/>-<stop offset="1" stop-color="#510404" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint7_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(-45) scale(258.996 182)">-<stop offset="0.0989011" stop-color="#770064"/>-<stop offset="1" stop-color="#510404" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint8_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) scale(398.125 182)">-<stop offset="0.0989011" stop-color="#770064"/>-<stop offset="1" stop-color="#510404" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint9_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(271 160) rotate(90) scale(182 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint10_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(461 160) rotate(90) scale(182 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint11_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(90) scale(182 182)">-<stop offset="0.0989011" stop-color="#770064"/>-<stop offset="1" stop-color="#510404" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint12_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(429 160) rotate(90) scale(182 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint13_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(239 160) rotate(90) scale(182 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint14_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 50) scale(398.125 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint15_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 82) scale(398.125 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint16_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 271) scale(398.125 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint17_radial_39_1471" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 239) scale(398.125 182)">-<stop offset="0.348958" stop-color="#FF8E8E"/>-<stop offset="0.880208" stop-color="#FFC6F6" stop-opacity="0"/>-</radialGradient>-<clipPath id="clip0_39_1471">-<rect width="700" height="320" rx="16" fill="white"/>-</clipPath>-</defs>-</svg>diff --git a/apps/docs/images/hero-light.svg b/apps/docs/images/hero-light.svgdeleted file mode 100644index 9db54d9c07..0000000000--- a/apps/docs/images/hero-light.svg+++ /dev/null@@ -1,139 +0,0 @@-<svg width="700" height="320" viewBox="0 0 700 320" fill="none" xmlns="http://www.w3.org/2000/svg">-<g clip-path="url(#clip0_39_1494)">-<rect width="700" height="320" rx="16" fill="white"/>-<rect width="700" height="320" rx="16" fill="url(#paint0_linear_39_1494)"/>-<g opacity="0.8" filter="url(#filter0_f_39_1494)">-<circle cx="660" cy="-60" r="160" fill="#7000FF" fill-opacity="0.31"/>-</g>-<g opacity="0.8" filter="url(#filter1_f_39_1494)">-<circle cx="20" cy="213" r="160" fill="#C01BDB" fill-opacity="0.33"/>-</g>-<g opacity="0.8" filter="url(#filter2_f_39_1494)">-<circle cx="660" cy="480" r="160" fill="#B010B4" fill-opacity="0.52"/>-</g>-<g opacity="0.8" filter="url(#filter3_f_39_1494)">-<circle cx="20" cy="413" r="160" fill="#FF0000" fill-opacity="0.22"/>-</g>-<path d="M386.015 53.2223L392.803 66.8421C395.854 72.9431 402.943 75.8647 409.43 73.7164L438.474 64.0064C439.076 63.7916 439.72 63.7057 440.365 63.7057C443.63 63.7057 446.294 66.3695 446.294 69.6348C446.294 70.2793 446.208 70.9237 445.993 71.5252L436.326 100.569C434.135 107.057 437.1 114.146 443.201 117.197L456.777 123.985C458.754 124.973 460 126.992 460 129.227C460 131.246 458.969 133.136 457.25 134.211L415.188 160.462C412.223 162.309 413.555 166.821 416.992 166.821H433.448C436.713 166.821 439.377 169.484 439.377 172.75C439.377 173.394 439.291 174.039 439.076 174.64L435.424 185.596C433.662 190.881 435.252 196.724 439.506 200.376L454.285 213.008C455.746 214.253 456.606 216.101 456.606 218.034C456.606 220.44 455.317 222.632 453.254 223.792L440.838 230.881C435.854 233.716 433.147 239.388 434.092 245.059L435.897 255.843C435.94 256.101 435.983 256.402 435.983 256.66C435.983 259.925 432.889 262.288 429.71 261.472L363.115 244.114C359.635 243.169 356.025 245.145 354.865 248.582L351.213 259.495C350.483 261.643 348.507 263.104 346.23 263.104C344.296 263.104 342.578 262.073 341.632 260.397L313.964 210.603L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029C238.99 262.932 238.99 256.402 243.029 252.406L299.357 196.057L249.602 168.41C247.927 167.465 246.896 165.704 246.896 163.813C246.896 161.536 248.356 159.56 250.505 158.829L261.418 155.177C264.855 154.06 266.788 150.451 265.886 146.928L248.528 80.333C247.669 77.1536 250.075 74.0602 253.34 74.0602C253.598 74.0602 253.899 74.1031 254.157 74.1461L264.941 75.9076C270.612 76.8528 276.283 74.189 279.162 69.1622L286.208 56.7454C287.411 54.7261 289.602 53.4372 291.965 53.4372C293.899 53.4372 295.746 54.2965 296.992 55.7573L309.581 70.4941C313.233 74.7046 319.076 76.3373 324.361 74.5757L335.317 70.9237C335.961 70.7089 336.563 70.623 337.207 70.623C340.472 70.623 343.136 73.2868 343.136 76.5521V93.0075C343.136 96.4447 347.647 97.7336 349.495 94.812L375.789 52.7497C376.863 51.0311 378.754 50 380.773 50C383.007 50 385.027 51.246 386.015 53.2223Z" fill="white"/>-<path d="M386.015 53.2223L392.803 66.8421C395.854 72.9431 402.943 75.8647 409.43 73.7164L438.474 64.0064C439.076 63.7916 439.72 63.7057 440.365 63.7057C443.63 63.7057 446.294 66.3695 446.294 69.6348C446.294 70.2793 446.208 70.9237 445.993 71.5252L436.326 100.569C434.135 107.057 437.1 114.146 443.201 117.197L456.777 123.985C458.754 124.973 460 126.992 460 129.227C460 131.246 458.969 133.136 457.25 134.211L415.188 160.462C412.223 162.309 413.555 166.821 416.992 166.821H433.448C436.713 166.821 439.377 169.484 439.377 172.75C439.377 173.394 439.291 174.039 439.076 174.64L435.424 185.596C433.662 190.881 435.252 196.724 439.506 200.376L454.285 213.008C455.746 214.253 456.606 216.101 456.606 218.034C456.606 220.44 455.317 222.632 453.254 223.792L440.838 230.881C435.854 233.716 433.147 239.388 434.092 245.059L435.897 255.843C435.94 256.101 435.983 256.402 435.983 256.66C435.983 259.925 432.889 262.288 429.71 261.472L363.115 244.114C359.635 243.169 356.025 245.145 354.865 248.582L351.213 259.495C350.483 261.643 348.507 263.104 346.23 263.104C344.296 263.104 342.578 262.073 341.632 260.397L313.964 210.603L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029C238.99 262.932 238.99 256.402 243.029 252.406L299.357 196.057L249.602 168.41C247.927 167.465 246.896 165.704 246.896 163.813C246.896 161.536 248.356 159.56 250.505 158.829L261.418 155.177C264.855 154.06 266.788 150.451 265.886 146.928L248.528 80.333C247.669 77.1536 250.075 74.0602 253.34 74.0602C253.598 74.0602 253.899 74.1031 254.157 74.1461L264.941 75.9076C270.612 76.8528 276.283 74.189 279.162 69.1622L286.208 56.7454C287.411 54.7261 289.602 53.4372 291.965 53.4372C293.899 53.4372 295.746 54.2965 296.992 55.7573L309.581 70.4941C313.233 74.7046 319.076 76.3373 324.361 74.5757L335.317 70.9237C335.961 70.7089 336.563 70.623 337.207 70.623C340.472 70.623 343.136 73.2868 343.136 76.5521V93.0075C343.136 96.4447 347.647 97.7336 349.495 94.812L375.789 52.7497C376.863 51.0311 378.754 50 380.773 50C383.007 50 385.027 51.246 386.015 53.2223Z" fill="url(#paint1_radial_39_1494)"/>-<path d="M386.015 53.2223L392.803 66.8421C395.854 72.9431 402.943 75.8647 409.43 73.7164L438.474 64.0064C439.076 63.7916 439.72 63.7057 440.365 63.7057C443.63 63.7057 446.294 66.3695 446.294 69.6348C446.294 70.2793 446.208 70.9237 445.993 71.5252L436.326 100.569C434.135 107.057 437.1 114.146 443.201 117.197L456.777 123.985C458.754 124.973 460 126.992 460 129.227C460 131.246 458.969 133.136 457.25 134.211L415.188 160.462C412.223 162.309 413.555 166.821 416.992 166.821H433.448C436.713 166.821 439.377 169.484 439.377 172.75C439.377 173.394 439.291 174.039 439.076 174.64L435.424 185.596C433.662 190.881 435.252 196.724 439.506 200.376L454.285 213.008C455.746 214.253 456.606 216.101 456.606 218.034C456.606 220.44 455.317 222.632 453.254 223.792L440.838 230.881C435.854 233.716 433.147 239.388 434.092 245.059L435.897 255.843C435.94 256.101 435.983 256.402 435.983 256.66C435.983 259.925 432.889 262.288 429.71 261.472L363.115 244.114C359.635 243.169 356.025 245.145 354.865 248.582L351.213 259.495C350.483 261.643 348.507 263.104 346.23 263.104C344.296 263.104 342.578 262.073 341.632 260.397L313.964 210.603L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029C238.99 262.932 238.99 256.402 243.029 252.406L299.357 196.057L249.602 168.41C247.927 167.465 246.896 165.704 246.896 163.813C246.896 161.536 248.356 159.56 250.505 158.829L261.418 155.177C264.855 154.06 266.788 150.451 265.886 146.928L248.528 80.333C247.669 77.1536 250.075 74.0602 253.34 74.0602C253.598 74.0602 253.899 74.1031 254.157 74.1461L264.941 75.9076C270.612 76.8528 276.283 74.189 279.162 69.1622L286.208 56.7454C287.411 54.7261 289.602 53.4372 291.965 53.4372C293.899 53.4372 295.746 54.2965 296.992 55.7573L309.581 70.4941C313.233 74.7046 319.076 76.3373 324.361 74.5757L335.317 70.9237C335.961 70.7089 336.563 70.623 337.207 70.623C340.472 70.623 343.136 73.2868 343.136 76.5521V93.0075C343.136 96.4447 347.647 97.7336 349.495 94.812L375.789 52.7497C376.863 51.0311 378.754 50 380.773 50C383.007 50 385.027 51.246 386.015 53.2223Z" fill="url(#paint2_radial_39_1494)"/>-<path d="M243.029 266.971C238.99 262.932 238.99 256.402 243.029 252.406L360.279 135.113C364.318 131.074 370.849 131.074 374.844 135.113C378.84 139.151 378.883 145.682 374.844 149.678L257.637 266.971C253.598 271.01 247.068 271.01 243.072 266.971H243.029Z" fill="url(#paint3_linear_39_1494)"/>-<circle opacity="0.3" cx="350" cy="160" r="111" stroke="url(#paint4_radial_39_1494)"/>-<circle opacity="0.3" cx="350" cy="160" r="79" stroke="url(#paint5_radial_39_1494)"/>-<path opacity="0.3" d="M511 321L189 -1" stroke="url(#paint6_radial_39_1494)"/>-<path opacity="0.3" d="M189 321L511 -1" stroke="url(#paint7_radial_39_1494)"/>-<path opacity="0.2" d="M0 160H700" stroke="url(#paint8_radial_39_1494)"/>-<path opacity="0.4" d="M271 0L271 320" stroke="url(#paint9_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M461 0L461 320" stroke="url(#paint10_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.3" d="M350 0L350 320" stroke="url(#paint11_radial_39_1494)"/>-<path opacity="0.3" d="M429 0L429 320" stroke="url(#paint12_radial_39_1494)"/>-<path opacity="0.4" d="M239 0L239 320" stroke="url(#paint13_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M0 50H700" stroke="url(#paint14_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M0 82H700" stroke="url(#paint15_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M0 271H700" stroke="url(#paint16_radial_39_1494)" stroke-dasharray="4 4"/>-<path opacity="0.4" d="M0 239H700" stroke="url(#paint17_radial_39_1494)" stroke-dasharray="4 4"/>-</g>-<defs>-<filter id="filter0_f_39_1494" x="260" y="-460" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1494"/>-</filter>-<filter id="filter1_f_39_1494" x="-380" y="-187" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1494"/>-</filter>-<filter id="filter2_f_39_1494" x="260" y="80" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1494"/>-</filter>-<filter id="filter3_f_39_1494" x="-380" y="13" width="800" height="800" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">-<feFlood flood-opacity="0" result="BackgroundImageFix"/>-<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>-<feGaussianBlur stdDeviation="120" result="effect1_foregroundBlur_39_1494"/>-</filter>-<linearGradient id="paint0_linear_39_1494" x1="1.04308e-05" y1="320" x2="710.784" y2="26.0793" gradientUnits="userSpaceOnUse">-<stop stop-color="#F3003A" stop-opacity="0.09"/>-<stop offset="0.729167" stop-color="#951168" stop-opacity="0.08"/>-</linearGradient>-<radialGradient id="paint1_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(240 270) rotate(-47.3279) scale(870.459 870.459)">-<stop stop-color="#AA82FF"/>-<stop offset="1" stop-color="#7E42FF" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint2_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(250 255) rotate(-41.7108) scale(308.099 308.099)">-<stop offset="0.185199" stop-color="#FF7246"/>-<stop offset="1" stop-color="#A073FF" stop-opacity="0"/>-</radialGradient>-<linearGradient id="paint3_linear_39_1494" x1="384" y1="144" x2="252" y2="270" gradientUnits="userSpaceOnUse">-<stop offset="0.0717997" stop-color="#953EC9"/>-<stop offset="0.45027" stop-color="#C963CB"/>-<stop offset="0.675676" stop-color="#FB695F"/>-<stop offset="1" stop-color="#FF5577"/>-</linearGradient>-<radialGradient id="paint4_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(263 76) rotate(47.663) scale(243.508)">-<stop stop-color="#7F06DD"/>-<stop offset="1" stop-color="#7B1AF6"/>-</radialGradient>-<radialGradient id="paint5_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(288.081 100.216) rotate(34.7708) scale(139.899)">-<stop stop-color="#AE46FF"/>-<stop offset="1" stop-color="#9240FB"/>-</radialGradient>-<radialGradient id="paint6_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(-135) scale(258.996 182)">-<stop offset="0.155621" stop-color="#750EC7"/>-<stop offset="0.583333" stop-color="#FA2B2B" stop-opacity="0.57"/>-<stop offset="1" stop-color="#FA762B" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint7_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(-45) scale(258.996 182)">-<stop offset="0.155621" stop-color="#750EC7"/>-<stop offset="0.583333" stop-color="#FA2B2B" stop-opacity="0.57"/>-<stop offset="1" stop-color="#FA762B" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint8_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) scale(398.125 182)">-<stop offset="0.155621" stop-color="#750EC7"/>-<stop offset="0.583333" stop-color="#FA2B2B" stop-opacity="0.57"/>-<stop offset="1" stop-color="#FA762B" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint9_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(271 160) rotate(90) scale(182 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint10_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(461 160) rotate(90) scale(182 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint11_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 160) rotate(90) scale(182 182)">-<stop offset="0.155621" stop-color="#750EC7"/>-<stop offset="0.583333" stop-color="#FA2B2B" stop-opacity="0.57"/>-<stop offset="1" stop-color="#FA762B" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint12_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(429 160) rotate(90) scale(182 182)">-<stop offset="0.453125" stop-color="#750EC7"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint13_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(239 160) rotate(90) scale(182 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint14_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 50) scale(398.125 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint15_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 82) scale(398.125 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint16_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 271) scale(398.125 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<radialGradient id="paint17_radial_39_1494" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 239) scale(398.125 182)">-<stop offset="0.453125" stop-color="#9215F5"/>-<stop offset="1" stop-color="#F983E6" stop-opacity="0"/>-</radialGradient>-<clipPath id="clip0_39_1494">-<rect width="700" height="320" rx="16" fill="white"/>-</clipPath>-</defs>-</svg>diff --git a/apps/docs/images/thumbnail.png b/apps/docs/images/thumbnail.pngnew file mode 100644index 0000000000..d04ceac60fBinary files /dev/null and b/apps/docs/images/thumbnail.png differdiff --git a/apps/docs/introduction.mdx b/apps/docs/introduction.mdxnew file mode 100644index 0000000000..4fa144f1fc--- /dev/null+++ b/apps/docs/introduction.mdx@@ -0,0 +1,58 @@+---+title: Introduction+description: "Dub.co is the open-source link management infrastructure for modern marketing teams."+---++{/* src="/images/thumbnail.png" */}++<img+ className="rounded-lg border border-gray-100"+ src="https://dub.co/_static/thumbnail.png"+ alt="Dub.co Thumbnail"+/>++## Features++Here are some of the features that Dub offers:++- [Advanced Analytics](https://dub.co/features/analytics)+- [Branded Links](https://dub.co/features/branded-links)+- [QR Codes](https://dub.co/features/qr-codes)+- [Personalization](https://dub.co/features/personalization)+- [Team Collaboration](https://dub.co/features/collaboration)++## Tech Stack++Dub's codebase is [fully open-source](https://dub.sh/github) and is built on top of the following technologies:++- [Next.js](https://nextjs.org/) – framework+- [TypeScript](https://www.typescriptlang.org/) – language+- [Tailwind](https://tailwindcss.com/) – CSS+- [Upstash](https://upstash.com/) – redis+- [Tinybird](https://tinybird.com/) – analytics+- [PlanetScale](https://planetscale.com/) – database+- [NextAuth.js](https://next-auth.js.org/) – auth+- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SSO/SAML+- [Turborepo](https://turbo.build/repo) – monorepo+- [Stripe](https://stripe.com/) – payments+- [Resend](https://resend.com/) – emails+- [Vercel](https://vercel.com/) – deployments++## Getting Started++To get started with Dub, you can do any of the following:++<CardGroup cols={2}>+ <Card title="Create a free account" icon="code" href="https://app.dub.co">+ Create a free account to get started with Dub+ </Card>+ <Card title="Try our API" icon="code" href="/api-reference/introduction">+ Learn how to use Dub's API to create and manage links programmatically+ </Card>+ <Card title="Self-host Dub" icon="building" href="/self-hosting/guide">+ Learn how to self-host Dub for greater control and privacy+ </Card>+ <Card title="Integrate with Dub" icon="circle-nodes" href="/integrations">+ Learn how to integrate Dub with your favorite tools+ </Card>+</CardGroup>diff --git a/apps/docs/mint.json b/apps/docs/mint.jsonindex 3c741a2a04..90ff6b3cdc 100644--- a/apps/docs/mint.json+++ b/apps/docs/mint.json@@ -30,7 +30,18 @@"url": "https://app.dub.co"},"openapi": "https://api.dub.sh",+ "tabs": [+ {+ "name": "API Reference",+ "url": "api-reference"+ }+ ],"anchors": [+ {+ "name": "Changelog",+ "icon": "bell",+ "url": "https://dub.co/changelog"+ },{"name": "Help Center","icon": "question",@@ -48,6 +59,23 @@}],"navigation": [+ {+ "group": "Getting Started",+ "pages": ["introduction"]+ },+ {+ "group": "Self-Hosting",+ "pages": ["self-hosting/guide"]+ },+ {+ "group": "Integrations",+ "pages": [+ "integrations/zapier",+ "integrations/pipedream",+ "integrations/make",+ "integrations/raycast"+ ]+ },{"group": "API Reference","pages": ["api-reference/introduction", "api-reference/rate-limits"]@@ -76,15 +104,6 @@"api-reference/endpoint/create-a-new-tag","api-reference/endpoint/retrieve-a-list-of-tags"]- },- {- "group": "Integrations",- "pages": [- "integrations/zapier",- "integrations/pipedream",- "integrations/make",- "integrations/raycast"- ]}],"api": {diff --git a/apps/docs/self-hosting/guide.mdx b/apps/docs/self-hosting/guide.mdxnew file mode 100644index 0000000000..a8a14a6898--- /dev/null+++ b/apps/docs/self-hosting/guide.mdx@@ -0,0 +1,23 @@+---+description: "An end-to-end guide on how to self-host Dub.co – the open-source link management platform."+---++Self-hosting Dub gives you extra control over your data and design.++## Prerequisites++Before you begin, make sure you have the following:++- A [GitHub](https://github.com/) account+- A [Vercel](https://vercel.com/) account+- A [Tinybird](https://www.tinybird.co/) account+- An [Upstash](https://upstash.com/) account+- A [Planetscale](https://planetscale.com/) account++## Step 1: Fork the repository++First, clone the [Dub repo](https://dub.sh/github) into a public GitHub repository. If you are planning to distribute the code, make sure to keep the source code public to comply with our [AGPLv3 license](https://dub.sh/license).++```bash+git clone https://github.com/steven-tey/dub.git+```diff --git a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsxindex e96037f8c8..ae8c787401 100644--- a/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/settings/tokens/page-client.tsx@@ -33,7 +33,7 @@ export default function TokensPageClient() {placeholder: "Jetpack API Key",maxLength: 140,}}- helpText="<a href='https://dub.co/docs' target='_blank'>Learn more about Dub's API.</a>"+ helpText="<a href='https://dub.sh/api' target='_blank'>Learn more about Dub's API.</a>"buttonText="Submit"handleSubmit={(data) =>fetch("/api/user/tokens", {diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsxindex 61db0d582d..3abf175959 100644--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx@@ -20,6 +20,7 @@ import {deepEqual,getApexDomain,getUrlWithoutUTMParams,+ isDubDomain,isValidUrl,linkConstructor,truncate,@@ -542,7 +543,7 @@ function AddEditLinkModal({<p className="mt-2 text-sm text-red-600" id="key-error">{keyError}</p>- ) : domain === "chatg.pt" ? (+ ) : domain !== "dub.sh" && isDubDomain(domain) ? (<p className="mt-2 text-sm text-gray-500">You can only create up to 25 links with this domain.</p>