From ef7bbe289ed3b9676920c66fb983bd986af9d147 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Thu, 9 Jan 2025 19:37:28 +0100 Subject: [PATCH 1/2] feat: Update redirect links for prototypes --- src/redirects.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/redirects.ts b/src/redirects.ts index f321cac0..d6a7a1d6 100644 --- a/src/redirects.ts +++ b/src/redirects.ts @@ -267,13 +267,13 @@ export function redirects(request: Request, env: CFEnvironment) { if (url.pathnameWithoutTrailingSlash.startsWith('/ais')) { const redirectUrl = url.pathnameWithoutTrailingSlash === '/ais/feedback' - ? 'https://drive.google.com/file/d/15mLT3zGWajfSHWz8WnIQ5yVyUVJheCPt/view?usp=drive_link' + ? 'https://mega.nz/file/rN5Wyb6S#NvwIQFZHWWlc3ZSTD9Izvp3aWR0IELXX929ZiEA95dM' : url.pathnameWithoutTrailingSlash === '/ais/lernpfad' - ? 'https://drive.google.com/file/d/1e6OcR--vNIB8Vj9bVp1qWEYEEEeqLJT-/view?usp=drive_link' + ? 'https://mega.nz/file/vJJm0AoL#X-7e-X78Idb_INGdP8DtNsGcRe7U9X5GqHwALQA65uk' : url.pathnameWithoutTrailingSlash === '/ais/kopilot' - ? 'https://drive.google.com/file/d/1G1D8BO0oyvBuTnQHI51ItTX8zG8bDTZr/view?usp=drive_link' + ? 'https://mega.nz/file/uFhn2CQI#XAuxHbsP2TfUsNmQeRUbGABVG5npUNpTnzbmMElXKvE' : url.pathnameWithoutTrailingSlash === '/ais/domain' - ? 'https://drive.google.com/file/d/1-CpJ7c5HBt-FDIvCup4vgwX2aNlrQ4_r/view?usp=drive_link' + ? 'https://mega.nz/file/uYYEFSxT#-p5wWKcme7Xt8YvuOdqOCqoEIL1xdbW25Ah0boouFJg' : undefined if (redirectUrl) { return Response.redirect(redirectUrl, 302) From 1b0c18f9036dc4994e094848d99f926e35d6517d Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Thu, 9 Jan 2025 19:41:26 +0100 Subject: [PATCH 2/2] test(redirects): Fix tests --- __tests__/redirects.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/redirects.ts b/__tests__/redirects.ts index 8387a4f7..42038a7b 100644 --- a/__tests__/redirects.ts +++ b/__tests__/redirects.ts @@ -323,7 +323,7 @@ describe('AIS redirects', () => { pathname: '/ais/feedback', }) const target = - 'https://drive.google.com/file/d/15mLT3zGWajfSHWz8WnIQ5yVyUVJheCPt/view?usp=drive_link' + 'https://mega.nz/file/rN5Wyb6S#NvwIQFZHWWlc3ZSTD9Izvp3aWR0IELXX929ZiEA95dM' expectToBeRedirectTo(response, target, 302) }) test('/ais/lernpfad', async () => { @@ -332,7 +332,7 @@ describe('AIS redirects', () => { pathname: '/ais/lernpfad', }) const target = - 'https://drive.google.com/file/d/1e6OcR--vNIB8Vj9bVp1qWEYEEEeqLJT-/view?usp=drive_link' + 'https://mega.nz/file/vJJm0AoL#X-7e-X78Idb_INGdP8DtNsGcRe7U9X5GqHwALQA65uk' expectToBeRedirectTo(response, target, 302) }) test('/ais/kopilot', async () => { @@ -341,7 +341,7 @@ describe('AIS redirects', () => { pathname: '/ais/kopilot', }) const target = - 'https://drive.google.com/file/d/1G1D8BO0oyvBuTnQHI51ItTX8zG8bDTZr/view?usp=drive_link' + 'https://mega.nz/file/uFhn2CQI#XAuxHbsP2TfUsNmQeRUbGABVG5npUNpTnzbmMElXKvE' expectToBeRedirectTo(response, target, 302) }) test('/ais/domain', async () => { @@ -350,7 +350,7 @@ describe('AIS redirects', () => { pathname: '/ais/domain', }) const target = - 'https://drive.google.com/file/d/1-CpJ7c5HBt-FDIvCup4vgwX2aNlrQ4_r/view?usp=drive_link' + 'https://mega.nz/file/uYYEFSxT#-p5wWKcme7Xt8YvuOdqOCqoEIL1xdbW25Ah0boouFJg' expectToBeRedirectTo(response, target, 302) }) })