From c3df8d4c2a6c3c42ea361b25ac1ad3d0793c780f Mon Sep 17 00:00:00 2001 From: Mythie Date: Tue, 17 Oct 2023 13:50:54 +1100 Subject: [PATCH] fix: add redirects for v0.9 requests --- apps/web/next.config.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index b9e5d2517..92004a3bc 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -37,6 +37,32 @@ const config = { }, ]; }, + async redirects() { + return [ + { + permanent: true, + source: '/documents/:id/sign', + destination: '/sign/:token', + has: [ + { + type: 'query', + key: 'token', + }, + ], + }, + { + permanent: true, + source: '/documents/:id/signed', + destination: '/sign/:token', + has: [ + { + type: 'query', + key: 'token', + }, + ], + }, + ]; + }, }; module.exports = config;