From 7dd5d6988a63de23c5496cfe0ef8ff85d343cf7c Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 21 Sep 2023 19:02:10 -0700 Subject: [PATCH] Add redirect for hensei-transfer CORS --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/next.config.js b/next.config.js index a86c741b..08b44b2b 100644 --- a/next.config.js +++ b/next.config.js @@ -53,6 +53,16 @@ module.exports = { }, ] }, + async redirects() { + return [ + { + source: '/transfer/version', + destination: + 'https://raw.githubusercontent.com/Vazkii/hensei-transfer/main/version', + permanent: true, + }, + ] + }, webpack(config) { // Set up alias for styles config.resolve.alias = {