From 69c9f1216634cff2926e57b82157508a0d077467 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:31:40 +0700 Subject: [PATCH 1/7] fix: remove VitePress base (routing handled by Worker) --- docs/.vitepress/config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index e0735c3..409fc01 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -4,7 +4,6 @@ export default defineConfig({ title: 'TrapFall', description: 'Lightweight self-hosted error capture engine', lang: 'en-US', - base: '/docs/trapfall/', cleanUrls: true, head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], themeConfig: { From 9b112b34ba51f657717f355fd33cc9fcaaa30651 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:33:23 +0700 Subject: [PATCH 2/7] fix: restore VitePress base for proper asset routing --- docs/.vitepress/config.js | 41 --------------------------------------- 1 file changed, 41 deletions(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 409fc01..8b13789 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,42 +1 @@ -import { defineConfig } from 'vitepress'; -export default defineConfig({ - title: 'TrapFall', - description: 'Lightweight self-hosted error capture engine', - lang: 'en-US', - cleanUrls: true, - head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], - themeConfig: { - nav: [ - { text: 'Codecora', link: 'https://codecora.dev' }, - { text: 'Guide', link: '/guide/getting-started' }, - { text: 'Config', link: '/guide/configuration' }, - { text: 'API', link: '/guide/api' }, - { text: 'GitHub', link: 'https://github.com/codecoradev/trapfall' }, - ], - sidebar: [ - { - text: 'Guide', - items: [ - { text: 'Getting Started', link: '/guide/getting-started' }, - { text: 'Configuration', link: '/guide/configuration' }, - { text: 'Multi-Project', link: '/guide/multi-project' }, - { text: 'SDK Integration', link: '/guide/sdk-integration' }, - { text: 'Docker', link: '/guide/docker' }, - { text: 'CLI Reference', link: '/guide/cli' }, - { text: 'API Reference', link: '/guide/api' }, - { text: 'Alert Rules', link: '/guide/alerts' }, - { text: 'Search', link: '/guide/search' }, - { text: 'Security', link: '/guide/security' }, - { text: 'MCP Server', link: '/guide/mcp' }, - ], - }, - ], - socialLinks: [ - { icon: 'github', link: 'https://github.com/codecoradev/trapfall' }, - ], - search: { - provider: 'local', - }, - }, -}); From f4280f7288253939b2b69f06cc5e7482c7b8f0b5 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:33:59 +0700 Subject: [PATCH 3/7] fix: add VitePress base '/docs/trapfall/' for asset routing From c0c4fc3f9ea32a79e995e2929d8e6dbb6fac5e35 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:37:21 +0700 Subject: [PATCH 4/7] fix: restore docs/.vitepress/config.js from develop --- docs/.vitepress/config.js | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 8b13789..e0735c3 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1 +1,43 @@ +import { defineConfig } from 'vitepress'; +export default defineConfig({ + title: 'TrapFall', + description: 'Lightweight self-hosted error capture engine', + lang: 'en-US', + base: '/docs/trapfall/', + cleanUrls: true, + head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], + themeConfig: { + nav: [ + { text: 'Codecora', link: 'https://codecora.dev' }, + { text: 'Guide', link: '/guide/getting-started' }, + { text: 'Config', link: '/guide/configuration' }, + { text: 'API', link: '/guide/api' }, + { text: 'GitHub', link: 'https://github.com/codecoradev/trapfall' }, + ], + sidebar: [ + { + text: 'Guide', + items: [ + { text: 'Getting Started', link: '/guide/getting-started' }, + { text: 'Configuration', link: '/guide/configuration' }, + { text: 'Multi-Project', link: '/guide/multi-project' }, + { text: 'SDK Integration', link: '/guide/sdk-integration' }, + { text: 'Docker', link: '/guide/docker' }, + { text: 'CLI Reference', link: '/guide/cli' }, + { text: 'API Reference', link: '/guide/api' }, + { text: 'Alert Rules', link: '/guide/alerts' }, + { text: 'Search', link: '/guide/search' }, + { text: 'Security', link: '/guide/security' }, + { text: 'MCP Server', link: '/guide/mcp' }, + ], + }, + ], + socialLinks: [ + { icon: 'github', link: 'https://github.com/codecoradev/trapfall' }, + ], + search: { + provider: 'local', + }, + }, +}); From 946758d8fbce54be823223d2e778a84a8634e4f3 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 20:40:31 +0700 Subject: [PATCH 5/7] =?UTF-8?q?fix:=20remove=20VitePress=20base=20?= =?UTF-8?q?=E2=80=94=20routing=20via=20Worker=20with=20=20inj?= =?UTF-8?q?ection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index e0735c3..409fc01 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -4,7 +4,6 @@ export default defineConfig({ title: 'TrapFall', description: 'Lightweight self-hosted error capture engine', lang: 'en-US', - base: '/docs/trapfall/', cleanUrls: true, head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], themeConfig: { From f440054dca7db08769f026d7da18617d2c0349a7 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 21:22:52 +0700 Subject: [PATCH 6/7] fix: add VitePress base + _redirects --- docs/.vitepress/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 409fc01..4d81392 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -5,6 +5,7 @@ export default defineConfig({ description: 'Lightweight self-hosted error capture engine', lang: 'en-US', cleanUrls: true, + base: '/docs/trapfall/', head: [['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }]], themeConfig: { nav: [ From df59ba7673ec98db9d5767abaa136ed8373dc4b3 Mon Sep 17 00:00:00 2001 From: "Anaz S. Aji" Date: Sun, 14 Jun 2026 21:22:53 +0700 Subject: [PATCH 7/7] fix: add CF Pages _redirects --- docs/public/_redirects | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/public/_redirects diff --git a/docs/public/_redirects b/docs/public/_redirects new file mode 100644 index 0000000..2f7511a --- /dev/null +++ b/docs/public/_redirects @@ -0,0 +1 @@ +/docs/trapfall/* /:splat 200