Repository navigation
|
I tried following the instructions in the blog integration guide, but ran into a couple of issues and errors: Missing Layout/Container: I got /blog to render, but it is missing the navbar and container styling. Should the guide suggest creating it under app/(home)/blog/page.tsx instead of app/blog/page.tsx to inherit the layout? Incomplete i18n Example: Toward the bottom of the guide, the code snippet imports an i18n module, but the docs don't show or explain what should be inside that i18n file. |
Replies: 3 comments 4 replies
|
you can port the created routes to the route group you want. and i18n part expects you already have a working i18n setup following https://www.fumadocs.dev/docs/internationalization/next. |
|
I am using Next.js static export and ran into this issue when trying to view individual blog pages:
Could you help me fix this issue? Earlier, I faced another issue, ## Error Type
Console Error
## Error Message
Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).
at script (<anonymous>:null:null)
at Provider (components/provider.tsx:7:10)
at Layout (app/layout.tsx:13:9)
## Code Frame
5 |
6 | export function Provider({ children }: { children: ReactNode }) {
> 7 | return <RootProvider search={{ SearchDialog }}>{children}</RootProvider>;
| ^
8 | }
9 |
Next.js version: 16.4.2 (Turbopack)...which I was able to fix by setting |
|
Another issue with /blog is that images fail to load, even though the image file is present in the directory: username@DESKTOP-KN231H7:~/projects/test-two/content/blog$ tree
.
├── hello-world.mdx
└── hello-world.png
1 directory, 2 files
...but, if I use an image link for example "https://www.fumadocs.dev/_next/image?url=%2F_next%2Fstatic%2Fimmutable%2Fmedia%2Fcli.3fokim1061bjv.png&w=3840&q=75" it works fine and the image shows up. |

it's expected because Next.js only serves the images in
/public, universal for other web frameworks.https://nextjs.org/docs/app/api-reference/file-conventions/public-folder