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.

bump next to canary, fix redirect

Steven Tey5ef0937709f7
diff --git a/apps/web/lib/middleware/utils.ts b/apps/web/lib/middleware/utils.ts
index f790f071ef..da38c5c6bf 100644
--- a/apps/web/lib/middleware/utils.ts
+++ b/apps/web/lib/middleware/utils.ts
@@ -32,7 +32,7 @@ export const getFinalUrl = (target: string, { req }: { req: NextRequest }) => {
const targetUrl = new URL(decodeURIComponent(target));
// @ts-ignore – until https://github.com/microsoft/TypeScript/issues/54466 is fixed
- if (searchParams.size === 0) return targetUrl; // if there are no query params, then return the target url as is (no need to parse it
+ if (searchParams.size === 0) return targetUrl.toString(); // if there are no query params, then return the target url as is (no need to parse it
// if searchParams (type: `URLSearchParams`) has the same key as target url, then overwrite it
for (const [key, value] of searchParams) {
diff --git a/apps/web/package.json b/apps/web/package.json
index 4b031b78f4..0e8140b898 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -51,7 +51,7 @@
"js-cookie": "^3.0.5",
"lucide-react": "^0.269.0",
"nanoid": "^5.0.1",
- "next": "13.5.4",
+ "next": "13.5.5-canary.4",
"next-auth": "^4.23.1",
"node-html-parser": "^6.1.4",
"nodemailer": "^6.9.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8085908bc4..e2feaccf9f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -155,11 +155,11 @@ importers:
specifier: ^5.0.1
version: 5.0.1
next:
- specifier: 13.5.4
+ specifier: 13.5.5-canary.4
+ version: 13.5.5-canary.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
next-auth:
specifier: ^4.23.1
node-html-parser:
specifier: ^6.1.4
version: 6.1.4
@@ -3193,7 +3193,7 @@ packages:
next-auth: ^4
dependencies:
'@prisma/client': 5.2.0([email protected])
dev: false
@@ -3202,6 +3202,11 @@ packages:
resolution: {integrity: sha512-LGegJkMvRNw90WWphGJ3RMHMVplYcOfRWf2Be3td3sUa+1AaxmsYyANsA+znrGCBjXJNi4XAQlSoEfUxs/4kIQ==}
+ dev: true
+
+ resolution: {integrity: sha512-tx4KDZqpizfNEC9w/VLOHvROR8xCajx1Gw5d/lIzdIS68x+vcERWWmmaV8GoDwfF2H+TB7hfMqdOgZ4pnurRzw==}
+ dev: false
resolution: {integrity: sha512-F3/6Z8LH/pGlPzR1AcjPFxx35mPqjE5xZcf+IL+KgbW9tMkp7CYi1y7qKrEWU7W4AumxX/8OINnDQWLiwLasLQ==}
@@ -3236,6 +3241,16 @@ packages:
cpu: [arm64]
os: [darwin]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-BqAx4wV55DmkEYHKijnYv1bt3mPQDAFBwws1E7KiMN0tEJiyhipeBVZTOkpZP5axxLBLV+bhJTOSikVvC2DKrw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3253,6 +3268,16 @@ packages:
cpu: [x64]
os: [darwin]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Lxp+7rSYO+pyWcldy2S2Vh30bgg4w/bS7JoYnnDwTFMwf1IaDaVHsseNedlE56tkkQwZRBy/Q7GS3yE5i6GdmA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3288,6 +3313,16 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Lm6Uqm/V4J8sJ82YCtq4xOHGXBj54zZ3ldsTNVO8LHqqWsPWX9vYds7CqFrBaKXdsz0bH9f2XkHbjKS0TaO5DQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3305,6 +3340,16 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-YQGNStscoM0NEoCZtB4B3PLpJFMGgGiiYwGmd0UTh83KbhrPdPzaQruXvG1WdxAcXHGsMar/lYIrI9H1otGdgw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3322,6 +3367,16 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-VIno27rSb7WsTgYmlyaH58BroPbLqgeSsSbs0Re2aogb/lb7eJvGP21wIXKt0+LsrTKCbqPvl3raGPdTpjFXQA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3339,6 +3394,16 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-G8vTuU8r5jeEkjyOTnmLkjXHcN57swr+woe117JKaN2Y7r1xxVEguRNYeE9zmnE2McLq2j27geb3z2uuMY+WRg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3356,6 +3421,16 @@ packages:
cpu: [arm64]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-Zxl0365GKr902smRGZEfewLhCg4n23/DLYMfrCPoctMSZl4yn0wOXqxD5+cTIkIGphPeqtUIKXfHdeOwgFJRkw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3373,6 +3448,16 @@ packages:
cpu: [ia32]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-HCysudS8C79Oo05TWAjBpkB0NrYPGSQxvzFURdrOwJQVirF8RpmHpCu6dPOQZdXyubG/8AovMR5JCtQVHPRquQ==}
+ engines: {node: '>= 10'}
+ cpu: [ia32]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
@@ -3390,6 +3475,16 @@ packages:
cpu: [x64]
os: [win32]
requiresBuild: true
+ dev: true
+ optional: true
+
+ resolution: {integrity: sha512-7bSBhwUtQp/qyScGfyFc89SDIK7C8OPzDoy0ooOj0K8kt26GCFtWfKnyxLkZVw22uHYoBAegDe+D3iPU2rDieg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+ requiresBuild: true
+ dev: false
optional: true
/@nodelib/[email protected]:
@@ -10739,7 +10834,7 @@ packages:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
dev: false
resolution: {integrity: sha512-mL083z8KgRtlrIV6CDca2H1kduWJuK/3pTS0Fe2og15KOm4v2kkLGdSDfc2g+019aEBrJUT0pPW2Xx42ImN1WA==}
peerDependencies:
next: ^12.2.5 || ^13
@@ -10754,7 +10849,7 @@ packages:
'@panva/hkdf': 1.1.1
cookie: 0.5.0
jose: 4.15.2
+ next: 13.5.5-canary.4(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])
nodemailer: 6.9.3
oauth: 0.9.15
openid-client: 5.6.0
@@ -10809,7 +10904,7 @@ packages:
- babel-plugin-macros
dev: false
resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==}
engines: {node: '>=16.14.0'}
hasBin: true
@@ -10825,10 +10920,9 @@ packages:
optional: true
dependencies:
'@next/env': 13.5.4
- '@opentelemetry/api': 1.4.1
'@swc/helpers': 0.5.2
busboy: 1.6.0
- caniuse-lite: 1.0.30001546
+ caniuse-lite: 1.0.30001543
postcss: 8.4.31
react: 18.2.0
react-dom: 18.2.0([email protected])
@@ -10847,10 +10941,10 @@ packages:
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
- dev: false
+ dev: true
- resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==}
+ resolution: {integrity: sha512-a07Akh5WtCXRY/indnpTU21ccXPqEAVrzVueHpcgOq55gRnmYWle7dF/qrBzAlvrldoLG7bzQKNt0AaG2inNWg==}
engines: {node: '>=16.14.0'}
hasBin: true
peerDependencies:
@@ -10864,29 +10958,30 @@ packages:
sass:
optional: true
dependencies:
- '@next/env': 13.5.4
+ '@next/env': 13.5.5-canary.4
+ '@opentelemetry/api': 1.4.1
'@swc/helpers': 0.5.2
busboy: 1.6.0
- caniuse-lite: 1.0.30001543
+ caniuse-lite: 1.0.30001546
postcss: 8.4.31
react: 18.2.0
react-dom: 18.2.0([email protected])
styled-jsx: 5.1.1(@babel/[email protected])([email protected])
watchpack: 2.4.0
optionalDependencies:
- '@next/swc-darwin-arm64': 13.5.4
- '@next/swc-darwin-x64': 13.5.4
- '@next/swc-linux-arm64-gnu': 13.5.4
- '@next/swc-linux-arm64-musl': 13.5.4
- '@next/swc-linux-x64-gnu': 13.5.4
- '@next/swc-linux-x64-musl': 13.5.4
- '@next/swc-win32-arm64-msvc': 13.5.4
- '@next/swc-win32-ia32-msvc': 13.5.4
- '@next/swc-win32-x64-msvc': 13.5.4
+ '@next/swc-darwin-arm64': 13.5.5-canary.4
+ '@next/swc-darwin-x64': 13.5.5-canary.4
+ '@next/swc-linux-arm64-gnu': 13.5.5-canary.4
+ '@next/swc-linux-arm64-musl': 13.5.5-canary.4
+ '@next/swc-linux-x64-gnu': 13.5.5-canary.4
+ '@next/swc-linux-x64-musl': 13.5.5-canary.4
+ '@next/swc-win32-arm64-msvc': 13.5.5-canary.4
+ '@next/swc-win32-ia32-msvc': 13.5.5-canary.4
+ '@next/swc-win32-x64-msvc': 13.5.5-canary.4
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
- dev: true
+ dev: false
resolution: {integrity: sha512-WDD0bdg9mbq6F4mRxEYcPWwfA1vxd0mrvKOyxI7Xj/atfRHVeutzuWByG//jfm4uPzp0y4Kj051EORCBSQMycw==}