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.

remove encodeURIComponent to check

Steven Tey0b4d04acad73
diff --git a/apps/web/lib/api/links.ts b/apps/web/lib/api/links.ts
index 4f584d49e2..d544fb225a 100644
--- a/apps/web/lib/api/links.ts
+++ b/apps/web/lib/api/links.ts
@@ -238,7 +238,7 @@ export async function addLink(link: LinkProps) {
redis.set(
`${domain}:${key}`,
{
- url: encodeURIComponent(url),
+ url,
password: hasPassword,
proxy,
...(rewrite && {
@@ -349,7 +349,7 @@ export async function editLink({
redis.set(
`${domain}:${key}`,
{
- url: encodeURIComponent(url),
+ url,
password: hasPassword,
proxy,
...(rewrite && {
diff --git a/apps/web/package.json b/apps/web/package.json
index 4a8d55eaed..722d845480 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -3,7 +3,7 @@
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
- "dev": "concurrently --kill-others \"prisma generate && next dev --port 8888\" \"prisma studio --browser none\"",
+ "dev": "concurrently --kill-others \"prisma generate && next dev --port 8888\" \"prisma studio --browser none\" \"email dev --port 3333\"",
"build": "prisma generate & next build",
"format:write": "prettier --write \"**/*.{css,js,json,jsx,ts,tsx}\"",
"format": "prettier \"**/*.{css,js,json,jsx,ts,tsx}\"",
@@ -23,8 +23,6 @@
"@splinetool/react-spline": "^2.2.3",
"@splinetool/runtime": "^0.9.146",
"@stripe/stripe-js": "^1.44.1",
- "@tailwindcss/forms": "^0.5.6",
- "@tailwindcss/typography": "^0.5.9",
"@upstash/qstash": "^0.3.6",
"@upstash/ratelimit": "^0.3.6",
"@upstash/redis": "^1.18.0",
@@ -46,14 +44,12 @@
"cobe": "^0.6.3",
"concurrently": "^8.0.1",
"crisp-sdk-web": "^1.0.19",
- "focus-trap-react": "^10.0.1",
"framer-motion": "^10.12.12",
"fuse.js": "^6.6.2",
"github-slugger": "^2.0.0",
"html-escaper": "^3.0.3",
"js-cookie": "^3.0.5",
"lucide-react": "^0.269.0",
- "ms": "^2.1.3",
"nanoid": "^5.0.1",
"next": "13.5.5-canary.4",
"next-auth": "^4.23.1",
@@ -83,8 +79,6 @@
"sonner": "^0.5.0",
"stripe": "^12.12.0",
"swr": "^2.1.5",
- "tailwind-scrollbar-hide": "^1.1.7",
- "tailwindcss-radix": "^2.8.0",
"topojson-client": "^3.1.0",
"unsplash-js": "^7.0.18",
"use-debounce": "^8.0.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7486b07e65..7c45d5b2c1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -70,12 +70,6 @@ importers:
'@stripe/stripe-js':
specifier: ^1.44.1
version: 1.44.1
- '@tailwindcss/forms':
- specifier: ^0.5.6
- version: 0.5.6([email protected])
- '@tailwindcss/typography':
- specifier: ^0.5.9
- version: 0.5.9([email protected])
'@upstash/qstash':
specifier: ^0.3.6
version: 0.3.6
@@ -139,9 +133,6 @@ importers:
crisp-sdk-web:
specifier: ^1.0.19
version: 1.0.19
- focus-trap-react:
- specifier: ^10.0.1
framer-motion:
specifier: ^10.12.12
@@ -160,9 +151,6 @@ importers:
lucide-react:
specifier: ^0.269.0
version: 0.269.0([email protected])
- ms:
- specifier: ^2.1.3
- version: 2.1.3
nanoid:
specifier: ^5.0.1
version: 5.0.1
@@ -250,12 +238,6 @@ importers:
swr:
specifier: ^2.1.5
version: 2.1.5([email protected])
- tailwind-scrollbar-hide:
- specifier: ^1.1.7
- version: 1.1.7
- tailwindcss-radix:
- specifier: ^2.8.0
- version: 2.8.0
topojson-client:
specifier: ^3.1.0
version: 3.1.0
@@ -8484,26 +8466,6 @@ packages:
engines: {node: '>=0.4.0'}
dev: false
- resolution: {integrity: sha512-Av+O4JCT4/WnY25jnaOu1rysqhaD9aAhqAxxcrJbgKciZToIFmPng/WOrLJ1yHe6ntNmx1g0WhdeDfNCL1dmfA==}
- peerDependencies:
- prop-types: ^15.8.1
- react: '>=16.3.0'
- react-dom: '>=16.3.0'
- dependencies:
- focus-trap: 7.5.3
- prop-types: 15.8.1
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- tabbable: 6.2.0
- dev: false
-
- resolution: {integrity: sha512-7UsT/eSJcTPF0aZp73u7hBRTABz26knRRTJfoTGFCQD5mUImLIIOwWWCrtoQdmWa7dykBi6H+Cp5i3S/kvsMeA==}
- dependencies:
- tabbable: 6.2.0
- dev: false
-
resolution: {integrity: sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==}
engines: {node: '>=4.0'}
@@ -13277,10 +13239,6 @@ packages:
use-sync-external-store: 1.2.0([email protected])
dev: false
- resolution: {integrity: sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==}
- dev: false
-
resolution: {integrity: sha512-R2/nULkdg1VR/EL4RXg4dEohdoxNUJGLMnWIQnPKL+O9Twu7Cn3Rxi4dlXkDzZrEGtR+G+psSXFouWlpTyLhCQ==}
dev: false