Просмотр исходного кода

Merge pull request #5438 from Kilo-Org/revert-5434-fix/docs-redirect-loop

Revert "fix(docs): remove self-referencing redirects causing redirect loops"
Emilie Lima Schario 2 недель назад
Родитель
Сommit
9f251eb87f

+ 0 - 5
.changeset/fix-docs-redirect-loop.md

@@ -1,5 +0,0 @@
----
-"kilocode-docs": patch
----
-
-Fix redirect loops in docs by removing self-referencing redirects

+ 60 - 0
apps/kilocode-docs/previous-docs-redirects.js

@@ -2,6 +2,12 @@ module.exports = [
 	// ============================================
 	// GET STARTED
 	// ============================================
+	{
+		source: "/docs/getting-started/quickstart",
+		destination: "/docs/getting-started/quickstart",
+		basePath: false,
+		permanent: true,
+	},
 	{
 		source: "/docs/getting-started/setting-up",
 		destination: "/docs/getting-started/setup-authentication",
@@ -548,28 +554,82 @@ module.exports = [
 	// ============================================
 	// CONTRIBUTING
 	// ============================================
+	{
+		source: "/docs/contributing",
+		destination: "/docs/contributing",
+		basePath: false,
+		permanent: true,
+	},
 	{
 		source: "/docs/contributing/index",
 		destination: "/docs/contributing",
 		basePath: false,
 		permanent: true,
 	},
+	{
+		source: "/docs/contributing/development-environment",
+		destination: "/docs/contributing/development-environment",
+		basePath: false,
+		permanent: true,
+	},
 
 	// ============================================
 	// CONTRIBUTING - Architecture
 	// ============================================
+	{
+		source: "/docs/contributing/architecture",
+		destination: "/docs/contributing/architecture",
+		basePath: false,
+		permanent: true,
+	},
 	{
 		source: "/docs/contributing/architecture/index",
 		destination: "/docs/contributing/architecture",
 		basePath: false,
 		permanent: true,
 	},
+	{
+		source: "/docs/contributing/architecture/annual-billing",
+		destination: "/docs/contributing/architecture/annual-billing",
+		basePath: false,
+		permanent: true,
+	},
+	{
+		source: "/docs/contributing/architecture/enterprise-mcp-controls",
+		destination: "/docs/contributing/architecture/enterprise-mcp-controls",
+		basePath: false,
+		permanent: true,
+	},
 	{
 		source: "/docs/contributing/architecture/onboarding-engagement-improvements",
 		destination: "/docs/contributing/architecture/onboarding-improvements",
 		basePath: false,
 		permanent: true,
 	},
+	{
+		source: "/docs/contributing/architecture/organization-modes-library",
+		destination: "/docs/contributing/architecture/organization-modes-library",
+		basePath: false,
+		permanent: true,
+	},
+	{
+		source: "/docs/contributing/architecture/track-repo-url",
+		destination: "/docs/contributing/architecture/track-repo-url",
+		basePath: false,
+		permanent: true,
+	},
+	{
+		source: "/docs/contributing/architecture/vercel-ai-gateway",
+		destination: "/docs/contributing/architecture/vercel-ai-gateway",
+		basePath: false,
+		permanent: true,
+	},
+	{
+		source: "/docs/contributing/architecture/voice-transcription",
+		destination: "/docs/contributing/architecture/voice-transcription",
+		basePath: false,
+		permanent: true,
+	},
 
 	// ============================================
 	// PAGES TO CONDENSE (Redirects to parent pages)