feat: add matrix redirects

This commit is contained in:
Jack Merrill 2023-07-19 21:09:21 -05:00
parent 47bd1899ee
commit d142db7fe4
No known key found for this signature in database
GPG Key ID: B8E3CDF57DD80CA5

View File

@ -3,6 +3,15 @@ const nextConfig = {
images: { images: {
domains: ["cdn.sanity.io"], 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; module.exports = nextConfig;