Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Codex Review: Here are some suggestions.
Reply with @codex fix comments to fix any unresolved comments.
About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".
| import { redirect } from 'next/navigation'; | ||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <main className="relative h-screen w-screen"> | ||
| <Spline scene="https://prod.spline.design/DS0UgrDOifhNt9T6/scene.splinecode" /> | ||
| <div className="absolute bottom-8 left-1/2 -translate-x-1/2"> | ||
| <Button | ||
| asChild | ||
| className="bg-[hsl(246,82%,60%)] text-white hover:opacity-90" | ||
| > | ||
| <Link href="/login">cerch now</Link> | ||
| </Button> | ||
| </div> | ||
| </main> | ||
| ); | ||
| redirect('/landingpage.html'); |
There was a problem hiding this comment.
[P1] Redirect makes root page server-only and breaks client imports
Replacing the home component with redirect('/landingpage.html') turns app/page.tsx into a server‑only module. Any existing client components or tests that import this page now fail to compile with This module cannot be imported from a Client Component module (as seen in pnpm test). Consider performing the redirect in middleware.ts, a Next.js rewrite, or a client‑side hook so the page remains importable where the client build expects it.
Useful? React with 👍 / 👎.
Summary
/to new animatedlandingpage.htmlTesting
pnpm lint(fails: Do not shadow the global "escape" property; Forbidden non-null assertion; Static Elements should not be interactive)pnpm test(fails: This module cannot be imported from a Client Component module)https://chatgpt.com/codex/tasks/task_e_68bfc75106e48324bfd8907e77d028d3