I am using Next.js 14 with the App Router to build my application. However, I am encountering soft 404 errors in Google Search Console. These errors occur when Googlebot crawls pages that seem to be empty or have insufficient content, even though the page returns a 200 HTTP status code (success).
Issue: When Google crawls my pages, it detects some of them as soft 404s, even though the page returns a 200 status code. Google seems to consider these pages as "not found" or "empty," even though the page exists.
Checked the URL Inspection Tool in Google Search Console: The pages are being crawled but are flagged as soft 404s. Checked the Content: Some pages are dynamically rendered based on a slug parameter, and if the data is missing (e.g., no blog post exists for that slug), I return an empty page or a placeholder. Tried Adding a 404 Page: I have created a custom 404 page, but the soft 404 issue persists