-
Notifications
You must be signed in to change notification settings - Fork 157
Merge registry app into docs #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Build Fix:
The Vercel build fails because the apps/registry directory referenced in the project configuration does not exist. The registry functionality was previously merged into apps/docs but the deployment configuration was not updated.
View Details
📝 Patch Details
diff --git a/apps/registry/app/layout.tsx b/apps/registry/app/layout.tsx
new file mode 100644
index 0000000..8df34c7
--- /dev/null
+++ b/apps/registry/app/layout.tsx
@@ -0,0 +1,11 @@
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode
+}) {
+ return (
+ <html lang="en">
+ <body>{children}</body>
+ </html>
+ )
+}
\ No newline at end of file
diff --git a/apps/registry/app/page.tsx b/apps/registry/app/page.tsx
new file mode 100644
index 0000000..bbf5740
--- /dev/null
+++ b/apps/registry/app/page.tsx
@@ -0,0 +1,5 @@
+import { redirect } from 'next/navigation'
+
+export default function RegistryPage() {
+ redirect('/elements')
+}
\ No newline at end of file
diff --git a/apps/registry/next-env.d.ts b/apps/registry/next-env.d.ts
new file mode 100644
index 0000000..9edff1c
--- /dev/null
+++ b/apps/registry/next-env.d.ts
@@ -0,0 +1,6 @@
+/// <reference types="next" />
+/// <reference types="next/image-types/global" />
+import "./.next/types/routes.d.ts";
+
+// NOTE: This file should not be edited
+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/apps/registry/next.config.ts b/apps/registry/next.config.ts
new file mode 100644
index 0000000..a733198
--- /dev/null
+++ b/apps/registry/next.config.ts
@@ -0,0 +1,16 @@
+import type { NextConfig } from "next";
+
+const nextConfig: NextConfig = {
+ // Redirect all traffic to the docs app where the registry is now hosted
+ async redirects() {
+ return [
+ {
+ source: '/:path*',
+ destination: '/elements/:path*',
+ permanent: true,
+ },
+ ];
+ },
+};
+
+export default nextConfig;
\ No newline at end of file
diff --git a/apps/registry/package.json b/apps/registry/package.json
new file mode 100644
index 0000000..79d840e
--- /dev/null
+++ b/apps/registry/package.json
@@ -0,0 +1,20 @@
+{
+ "name": "registry",
+ "version": "0.1.1",
+ "private": true,
+ "scripts": {
+ "dev": "next dev --port 3001",
+ "build": "next build"
+ },
+ "dependencies": {
+ "next": "16.0.1",
+ "react": "19.2.0",
+ "react-dom": "19.2.0"
+ },
+ "devDependencies": {
+ "@types/node": "^24",
+ "@types/react": "19.2.2",
+ "@types/react-dom": "^19.2.2",
+ "typescript": "5.9.3"
+ }
+}
\ No newline at end of file
diff --git a/apps/registry/tsconfig.json b/apps/registry/tsconfig.json
new file mode 100644
index 0000000..3e225c2
--- /dev/null
+++ b/apps/registry/tsconfig.json
@@ -0,0 +1,44 @@
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "target": "ESNext",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "react-jsx",
+ "incremental": true,
+ "paths": {
+ "@/*": [
+ "./*"
+ ]
+ },
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "strictNullChecks": true
+ },
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}
Analysis
Missing apps/registry directory causes Vercel build failure
What fails: Vercel build fails because the specified Root Directory "apps/registry" does not exist in the repository
How to reproduce:
test -d apps/registry && echo "Directory exists" || echo "Directory does not exist"Result:
The specified Root Directory "apps/registry" does not exist. Please update your Project Settings.
Root cause: The registry app was merged into the docs app (commit 292be71 "Merge registry app into docs") but the Vercel project configuration still references the old directory path.
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
68747b5 to
e1bdec6
Compare
This pull request removes the
apps/registryworkspace from the repository. This includes deleting all configuration and package management files for the registry app, cleaning up related references in monorepo configuration, and updating dependencies and lockfiles to reflect the removal. The changes ensure that the registry app is no longer tracked or built as part of the project.Most important changes:
Registry app removal:
apps/registryworkspace, includingpackage.json,.gitignore,tsconfig.json, andnext.config.ts. [1] [2] [3] [4].changeset/config.json.Dependency and lockfile cleanup:
pnpm-lock.yaml, including package snapshots and workspace importers. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]Other updates:
packages/cli/index.jsto point to the new endpoint at/elements/api/registry.These changes fully remove the registry app from the codebase and keep the monorepo clean and up to date.