From 05a87e2acf6af208ebbf2ef8a4133b04f59b86b2 Mon Sep 17 00:00:00 2001 From: Lyssa Date: Tue, 23 Dec 2025 14:31:24 +0400 Subject: Fix redirects, thanks Magic for config i couldnt be bothered to do it myself --- docusaurus.config.js | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 24 ++++++++++++++++++++ package.json | 1 + static/_redirects | 15 ------------- 4 files changed, 87 insertions(+), 15 deletions(-) delete mode 100644 static/_redirects diff --git a/docusaurus.config.js b/docusaurus.config.js index e9e6512..d513faa 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -70,6 +70,68 @@ const config = { ], ], + plugins: [ + [ + '@docusaurus/plugin-client-redirects', + { + redirects: [ + { + from: '/get', + to: 'https://massgrave.dev/get.ps1', + }, + { + from: '/redirect-genuine-installation-media', + to: '/genuine-installation-media', + }, + { + from: ['/change_edition', '/change_edition.html'], + to: '/change_windows_edition', + }, + { + from: '/in-place_repair_upgrade', + to: 'https://gravesoft.dev/in-place_repair_upgrade', + }, + { + from: '/bypass-russian-geoblock', + to: 'https://gravesoft.dev/bypass-russian-geoblock', + }, + { + from: '/fix-wpa-registry', + to: 'https://gravesoft.dev/fix-wpa-registry', + }, + { + from: '/office_c2r_links', + to: 'https://gravesoft.dev/office_c2r_links', + }, + { + from: '/office_c2r_custom', + to: 'https://gravesoft.dev/office_c2r_custom', + }, + { + from: '/fix_powershell', + to: 'https://gravesoft.dev/fix_powershell', + }, + { + from: '/remove_malware', + to: 'https://gravesoft.dev/remove_malware', + }, + { + from: '/clean_install_windows', + to: 'https://gravesoft.dev/clean_install_windows', + }, + { + from: '/msdl', + to: 'https://msdl.gravesoft.dev/', + }, + { + from: '/api/msdl/proxy', + to: 'https://msdl.gravesoft.dev/', + }, + ], + }, + ], + ], + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ diff --git a/package-lock.json b/package-lock.json index e0dfc38..aa8a118 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@docusaurus/core": "3.9.2", + "@docusaurus/plugin-client-redirects": "^3.9.2", "@docusaurus/preset-classic": "3.9.2", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", @@ -3352,6 +3353,29 @@ "react-dom": "*" } }, + "node_modules/@docusaurus/plugin-client-redirects": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.9.2.tgz", + "integrity": "sha512-lUgMArI9vyOYMzLRBUILcg9vcPTCyyI2aiuXq/4npcMVqOr6GfmwtmBYWSbNMlIUM0147smm4WhpXD0KFboffw==", + "dependencies": { + "@docusaurus/core": "3.9.2", + "@docusaurus/logger": "3.9.2", + "@docusaurus/utils": "3.9.2", + "@docusaurus/utils-common": "3.9.2", + "@docusaurus/utils-validation": "3.9.2", + "eta": "^2.2.0", + "fs-extra": "^11.1.1", + "lodash": "^4.17.21", + "tslib": "^2.6.0" + }, + "engines": { + "node": ">=20.0" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, "node_modules/@docusaurus/plugin-content-blog": { "version": "3.9.2", "resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.9.2.tgz", diff --git a/package.json b/package.json index f63216c..afc7358 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "dependencies": { "@docusaurus/core": "3.9.2", + "@docusaurus/plugin-client-redirects": "^3.9.2", "@docusaurus/preset-classic": "3.9.2", "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", diff --git a/static/_redirects b/static/_redirects deleted file mode 100644 index 25f84b9..0000000 --- a/static/_redirects +++ /dev/null @@ -1,15 +0,0 @@ -/get /get.ps1 301 -/api/msdl/proxy* https://msdl.gravesoft.dev/ 301 -/msdl* https://msdl.gravesoft.dev/ 301 -/in-place_repair_upgrade* https://gravesoft.dev/in-place_repair_upgrade 301 -/bypass-russian-geoblock* https://gravesoft.dev/bypass-russian-geoblock 301 -/fix-wpa-registry* https://gravesoft.dev/fix-wpa-registry 301 -/redirect-genuine-installation-media* /genuine-installation-media 301 -/change_edition /change_windows_edition 301 -/change_edition.html /change_windows_edition 301 -/idm-activation-script* https://github.com/WindowsAddict/IDM-Activation-Script 301 -/office_c2r_links* https://gravesoft.dev/office_c2r_links 301 -/office_c2r_custom* https://gravesoft.dev/office_c2r_custom 301 -/fix_powershell* https://gravesoft.dev/fix_powershell 301 -/remove_malware* https://gravesoft.dev/remove_malware 301 -/clean_install_windows* https://gravesoft.dev/clean_install_windows 301 -- cgit v1.2.3