Next next-intl 动态渲染报错??


Error: Usage of next-intl APIs in Server Components currently opts into dynamic rendering. This limitation will eventually be lifted, but as a stopgap solution, you can use the `setRequestLocale` API to enable static rendering, see https://next-intl-docs.vercel.app/docs/getting-started/app-router/with-i18n-routing#static-rendering
i18n.ts文件(或i18n目录下 request.ts)

 

posted @ 2024-11-04 21:07  红苹果学园  阅读(5)  评论(0编辑  收藏  举报