Add sitemap and robots TS files#15
Conversation
- Added `src/app/robots.ts` for automated robots.txt generation. - Updated `src/app/sitemap.ts` to include only active routes and ensure static export compatibility. - Forced both routes to static using `export const dynamic = "force-static"` to support the static export configuration.
|
👋 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. |
- Added `src/app/robots.ts` for automated robots.txt generation. - Reverted `src/app/sitemap.ts` to its original state as per PR feedback. - Ensured `robots.ts` is forced to static to support the static export configuration.
This PR adds and configures
sitemap.tsandrobots.tsfiles in the Next.js App Router to handle SEO requirements.Changes:
src/app/robots.tsto generaterobots.txt, allowing all crawlers and pointing to the sitemap.src/app/sitemap.tsto include the current homepage route and removed non-existent placeholder routes (/python,/typescript).export const dynamic = "force-static";to ensure they are correctly generated as static assets during thenext buildprocess, which is necessary because the project is configured withoutput: "export".Verification:
pnpm buildand verified thatout/sitemap.xmlandout/robots.txtare correctly generated.pnpm lint,pnpm run typecheck, andpnpm testto ensure project integrity.PR created automatically by Jules for task 2994241262552394057 started by @amrabed