From d142db7fe46b0c22d1ee8d8adee818ecbfeaeaa0 Mon Sep 17 00:00:00 2001 From: Jack Merrill Date: Wed, 19 Jul 2023 21:09:21 -0500 Subject: [PATCH] feat: add matrix redirects --- next.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/next.config.js b/next.config.js index 3dcc307..2e34c74 100644 --- a/next.config.js +++ b/next.config.js @@ -3,6 +3,15 @@ const nextConfig = { images: { domains: ["cdn.sanity.io"], }, + async redirects() { + return [ + { + source: "/.well-known/matrix/:slug*", + destination: "https://matrix.jackmerrill.com/.well-known/matrix/:slug*", + permanent: true, + }, + ]; + }, }; module.exports = nextConfig;