next.config.js Options: trailingSlash | Next.js
Configure Next.js pages to resolve with or without a trailing slash.