How one developer built an 8-language static Next.js site with no server
A developer recently rebuilt a personal website as a fully static Next.js 15 export supporting eight languages, hosted for free on Cloudflare Pages. Since static export eliminates server-side request handling, locale detection had to be driven entirely by URL structure rather than HTTP headers. The next-intl 4 library was used to manage routing, with each language generating its own set of prerendered HTML files at build time. English was configured without a URL prefix to keep clean paths, while all other languages use their language code in the URL. Proper hreflang tags were implemented to signal to search engines that the near-identical pages are translations, not duplicates.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in