Skip to content

Commit 130773e

Browse files
Refactor: Convert legacy application to docs-only mode (#599)
This PR transforms our legacy Next.js application to serve only documentation content by: - Removing dashboard components and pages - Stripping authentication requirements - Maintaining documentation routes and content - Preparing for proxy integration with new dashboard ### Technical changes - Removed auth-required wrappers from documentation pages - Eliminated dashboard-specific components and routes - Removed unused dependencies related to dashboard functionality - Updated application configs & sitemap.xml to support being proxied by new dashboard app ### Testing - Verified all documentation pages render correctly without auth - Confirmed navigation works as expected - Tested proxy integration with new dashboard application ### Next steps 1. Once merged, the new dashboard will proxy to this application for documentation content 2. In the future, we'll migrate documentation to the new system completely
2 parents 8e1bd9a + 213bcdd commit 130773e

43 files changed

Lines changed: 102 additions & 4628 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/web/next.config.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,6 @@ const nextConfig = {
7171
config.cache.version = config.cache.version + delimiter + codeFilesHash
7272
return config
7373
},
74-
async rewrites() {
75-
return {
76-
afterFiles: [
77-
{
78-
source: '/ingest/:path*',
79-
destination: 'https://app.posthog.com/:path*',
80-
// BEWARE: setting basePath will break the analytics proxy
81-
},
82-
],
83-
}
84-
},
8574
async redirects() {
8675
return [
8776
{

apps/web/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"mdx-annotations": "^0.1.1",
5454
"next": "14.2.25",
5555
"next-themes": "^0.2.1",
56-
"posthog-js": "^1.148.0",
5756
"react": "18.2.0",
5857
"react-dom": "18.2.0",
5958
"react-highlight-words": "^0.20.0",

apps/web/src/app/(auth)/auth/layout.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/web/src/app/(auth)/auth/reset-password/page.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/web/src/app/(auth)/auth/sign-in/page.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/web/src/app/(auth)/auth/sign-up/page.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/web/src/app/(auth)/auth/update-password/page.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/web/src/app/(dashboard)/dashboard/layout.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)