d0490e06fe
next.config: trailingSlash true → /es redirige a /es/ y los enlaces se generan con barra. Se ajustan a barra final los destinos internos que se enlazan a mano (logout /log-out/ y su redirect, y los window.location.assign de login/ select-account) para evitar el salto 308 extra. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import type { NextConfig } from 'next'
|
|
import createNextIntlPlugin from 'next-intl/plugin'
|
|
|
|
const withNextIntl = createNextIntlPlugin('./i18n/request.ts')
|
|
|
|
const nextConfig: NextConfig = {
|
|
// URLs con barra final (/es/ en vez de /es), como el sitio original.
|
|
trailingSlash: true,
|
|
}
|
|
|
|
export default withNextIntl(nextConfig)
|