Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed some ESM compatibility problems with Next.js, upgrading fumadocs may fix your problems |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I'm trying to integrate fumadocs with an existing project of mine. I already had 2 middlewares working together (CLERK auth and NEXT-INTL) how can I implement the i18n to my fumadocs docs with those others middlewares? Or do I need to remove NEXT-INTL from my project?
=================================================================================================
I am getting this error
once I put this on my middleware.ts file:
const translatedMiddleDocs = createI18nMiddleware({
languages: ['en', 'pt'],
// Used when no locale matches
defaultLanguage: 'pt',
})
===========================================================================================
Also in my docs layout file I am getting this:
===========================================================================================
Here's my source.ts file:
Beta Was this translation helpful? Give feedback.
All reactions