Skip to content

Product discussions#794

Open
rajat1saxena wants to merge 2 commits into
mainfrom
issue-793-1
Open

Product discussions#794
rajat1saxena wants to merge 2 commits into
mainfrom
issue-793-1

Conversation

@rajat1saxena
Copy link
Copy Markdown
Member

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
courselit-docs Ready Ready Preview, Comment Jun 6, 2026 1:11pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 82d622380f

ℹ️ 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
  • 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 address that feedback".

Comment on lines +224 to +225
if (productNotFound) {
notFound();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Return unavailable checkout products before client render

When an unpublished or otherwise unavailable checkout product is detected here, this notFound() runs only after the client-side useEffect fetch completes. A direct request to /checkout?type=course&id=... has already been served as a 200 with the client shell, so crawlers and HTTP clients still see a successful page instead of a real 404/noindex response. If the checkout URL must be hidden for unavailable products, move this lookup/404 decision into the server page using searchParams or another server-side guard.

Useful? React with 👍 / 👎.

const productId = params?.id as string;
const { product } = useProduct(productId);
const address = useContext(AddressContext);
const { theme } = useContext(ThemeContext);
reporterName?: string;
};

const STATUS_FILTERS: Array<{ label: string; value?: ReportStatus }> = [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants