How to make Next.js i18n routing work with Pages?
I use this command to build my Next.js project:
And deploy:
My next config:
And deploy:
My next config:
pnpm dlx @cloudflare/next-on-pagesCLOUDFLARE_ACCOUNT_ID=38bc8e8ffacb44cf6ab6293124ef8e28 wrangler pages publish .vercel/output/static{
reactStrictMode: true,
i18n: {
locales: ['en', 'zh-TW'],
defaultLocale: 'en',
},
trailingSlash: true,
}