Home / Fix guides / Next.js
Next.js fix guides
77 step-by-step guides for fixing common SEO, security, speed and usability problems on Next.js.
Technical SEO
- Missing robots.txt file
- Robots.txt blocking entire site
- No XML sitemap
- Sitemap could not be fetched
- Sitemap includes noindex or redirected URLs
- Accidental noindex tag on pages
- Excluded by noindex tag in Search Console
- Crawled - currently not indexed
- Discovered - currently not indexed
- Page not indexed by Google
- Duplicate without user-selected canonical
- Missing canonical tags
- Canonical pointing to wrong URL
- Redirect chains
- Redirect loop (too many redirects)
- Soft 404 errors
- Submitted URL not found (404)
- Hreflang tag errors
On-page SEO
- Missing title tags
- Title tag too long
- Title tag too short
- Missing meta descriptions
- Duplicate meta descriptions
- Meta description too long
- Google rewriting my title or meta description
- Missing H1 tag
- Duplicate content across pages
- URL parameters creating duplicate pages
- Uppercase letters or underscores in URLs
Structured data and AI search
- No schema markup on website
- Invalid JSON-LD syntax errors
- Unparsable structured data
- FAQ schema errors
- Product schema missing price or offers
- Breadcrumb structured data errors
- Missing Organization schema and logo
- Page fails Rich Results Test
Speed and Core Web Vitals
- Slow Largest Contentful Paint (LCP)
- Poor Interaction to Next Paint (INP)
- High Cumulative Layout Shift (CLS)
- Reduce unused JavaScript
- Oversized images slowing the page
- Images not in next-gen format (WebP/AVIF)
- Offscreen images not lazy loaded
- LCP image is lazy loaded
- Images without width and height attributes
- Text invisible during web font load
- Layout shift caused by web fonts
- Too many web font files or weights
- Third-party scripts slowing the site
- Excessive main thread work
- Long main-thread tasks blocking interaction
- Landing page redirects slowing load
Mobile and usability
Accessibility (WCAG)
- Icon-only buttons without labels
- Missing skip to content link
- aria-hidden on focusable elements
- Invalid ARIA roles or attributes
- Clickable div acting as button without role
Website security
- Missing Content-Security-Policy header
- CSP allows unsafe-inline
- Missing Referrer-Policy header
- Missing Permissions-Policy header
- Exposed .env file
Local SEO and reviews
Conversion and forms
Analytics, cookies and GDPR
- No cookie consent banner on website
- Cookies set before consent is given
- GA4 tracking code not installed
- GA4 showing no data
- GA4 tag installed twice, double counting