Skip to content

The Open Source DocuSign Alternative.

fix: add redirects for v0.9 requests

Mythief75f191a9a93
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;