SEO for custom and Next.js websites is the work of making sure a site built in code, not on a ready platform, can be crawled, rendered, indexed and ranked. Next.js and other modern frameworks can produce very fast, clean pages. They can also produce pages that look perfect in the browser while Google receives an empty shell, missing titles, no sitemap and redirects that break every old URL.
We work with development teams as the SEO side of the project. We write the requirements before the build, review staging before launch and check production after it. This page is part of our SEO by platform guide and of our technical SEO service.
Rendering: what Google receives
Google can render JavaScript, but rendering happens later than crawling and not every page gets rendered quickly. Content that appears only after client-side fetching is a risk. In Next.js, pages should be built with server-side rendering (SSR), static generation (SSG) or incremental static regeneration (ISR) so the main content, links and metadata are in the first HTML response. We check this by fetching the raw HTML and comparing it with the rendered page in the URL Inspection tool.
Metadata, sitemaps and robots
- Titles, descriptions, canonical tags and hreflang through the Metadata API or generateMetadata, set per page and not copied from a layout
- A sitemap generated from real routes and data, updated when content changes
- robots.txt that does not block JavaScript, CSS or image files Google needs
- A real 404 status for missing pages, not a 200 page that says not found
- Internal links as real anchor tags with href, so Google can follow them
Redirects in migrations
Most custom builds replace an older site. Every old URL needs a permanent redirect to its closest new URL, configured in the framework or at the server. Next.js permanent redirects return a 308 status, which Google treats like a 301. The risk is not the code, it is a missing URL map. See our guide to SEO during website migration.