---
title: "robots.txt blocks JS/CSS needed to render (seo/robots-blocks-resources)"
description: "seo/robots-blocks-resources: Google renders pages with their scripts and styles; blocking /_next/ makes it see a broken page."
canonical: https://void-design.vercel.app/rules/seo/robots-blocks-resources
lastModified: 2026-09-16
---

# robots.txt blocks JS/CSS needed to render

`seo/robots-blocks-resources` · severity **error** · category SEO · detected by `void seo` and `void audit`

## Why it matters

Google renders pages with their scripts and styles; blocking /_next/ makes it see a broken page.

## How to fix it

Never disallow /_next/ or other asset paths; disallow only private routes such as /api/ and /account/.

## References

- https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics

## More seo rules

`void seo` reports 60 rules in this category. What search engines need from the raw response: status codes, titles and descriptions in <head>, self-referencing canonicals, one h1, crawlable links, Open Graph, icons, robots.txt and a sitemap with real dates.

- `robots-txt-unreachable` robots.txt returns 5xx/429 or times out — [seo/robots-txt-unreachable](https://void-design.vercel.app/rules/seo/robots-txt-unreachable)
- `robots-txt-missing` No robots.txt — [seo/robots-txt-missing](https://void-design.vercel.app/rules/seo/robots-txt-missing)
- `robots-txt-invalid` robots.txt serves HTML, exceeds 500 KiB, or has unparseable lines — [seo/robots-txt-invalid](https://void-design.vercel.app/rules/seo/robots-txt-invalid)
- `robots-blocks-all` robots.txt disallows the site for * / Googlebot / Bingbot — [seo/robots-blocks-all](https://void-design.vercel.app/rules/seo/robots-blocks-all)
- `robots-sitemap-directive` robots.txt has no absolute Sitemap: line — [seo/robots-sitemap-directive](https://void-design.vercel.app/rules/seo/robots-sitemap-directive)
- `sitemap-missing` No reachable sitemap — [seo/sitemap-missing](https://void-design.vercel.app/rules/seo/sitemap-missing)
- `sitemap-invalid` Sitemap isn't valid sitemap XML or exceeds protocol limits — [seo/sitemap-invalid](https://void-design.vercel.app/rules/seo/sitemap-invalid)
- `sitemap-url-invalid` Sitemap <loc> is relative or on another host — [seo/sitemap-url-invalid](https://void-design.vercel.app/rules/seo/sitemap-url-invalid)

Detected by `void seo` and `void audit`. Explain it in a terminal: `void rules seo/robots-blocks-resources`
