Fix slug path to render content#255
Conversation
The parameter name in `app/[[...slug]]/page.tsx` was incorrectly set to `mdxPath`, causing a mismatch with the directory name and preventing content from rendering. Updated it to `slug` to align with the file system routing. Verified with `pnpm build` which now correctly generates static pages for all content. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Fixed `app/[[...slug]]/page.tsx` to use correct `slug` parameter name. - Renamed `fumadocs.com` to `fumadocs.dev` for corrected links. - Improved `Steps` component usage by using standard markdown headings (`###`). - Added custom `Image` component to `mdx-components.tsx` for optimized images. - Refactored content MDX files to use the improved `Steps` and `Image` components. - Verified changes with a production build and Biome checks. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Replaced generic "Step 1", "Step 2" headings with descriptive step titles within the `<Steps>` component. - Applied these changes to `content/230302_0215.mdx` and `content/230304_2057.mdx`. - Verified changes with a production build. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Corrected `slug` parameter in `[[...slug]]` route. - Updated all links to `fumadocs.dev`. - Enhanced `Steps` component by using the explicit `<Step>` component for better semantics and styling. - Integrated `next/image` via a custom `<Image />` component for better performance and optimized images. - Refactored all MDX content to use the improved components. - Verified with a full production build and Biome linting. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
The parameter name in
app/[[...slug]]/page.tsxwas incorrectly set tomdxPath, causing a mismatch with the directory name and preventing content from rendering. Updated it toslugto align with the file system routing.I have:
app/[[...slug]]/page.tsxto usesluginstead ofmdxPathinPageandgenerateMetadata.pnpm installandpnpm build, which successfuly generated static pages for all files in thecontent/directory.pnpm checkto ensure code style consistency.PR created automatically by Jules for task 12514049415260517855 started by @torn4dom4n