Developer shares 6 hard-learned lessons building a multilingual Next.js 15 site
A developer building a 150-page multilingual tool website (utlkit.com) with Next.js 15 on Cloudflare Pages documented six key pitfalls encountered during the process. Query string-based language switching was abandoned early due to SEO failures, caching conflicts, and broken social sharing links. The developer ultimately adopted a dynamic [locale] route segment approach, giving each language version its own distinct URL for better search engine indexing. Additional issues included nested HTML caused by duplicate layout files, silent failures of server-side redirects in static export mode, and multilingual metadata breaking due to Next.js 15 treating route params as async promises. Each problem was resolved through specific code-level fixes, which the developer shared to help others avoid the same mistakes.
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