Q38: How does trailingSlash configuration affect Pages Router routing?

Setting trailingSlash: true in next.config.js redirects URLs without trailing slashes to their trailing slash equivalent (/about -> /about/). Static export builds output about/index.html instead of about.html.

Key Takeaways
  • Configured via trailingSlash: true in next.config.js.
  • Shapes static export HTML folder structures.
Knowledge Check

When trailingSlash: true is configured, what HTML file path is generated for pages/contact.js during static export?