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;