Skip to content

Add sitemap and robots TS files#15

Merged
amrabed merged 2 commits into
mainfrom
feat/add-seo-metadata-files-2994241262552394057
Jun 30, 2026
Merged

Add sitemap and robots TS files#15
amrabed merged 2 commits into
mainfrom
feat/add-seo-metadata-files-2994241262552394057

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This PR adds and configures sitemap.ts and robots.ts files in the Next.js App Router to handle SEO requirements.

Changes:

  • Created src/app/robots.ts to generate robots.txt, allowing all crawlers and pointing to the sitemap.
  • Updated src/app/sitemap.ts to include the current homepage route and removed non-existent placeholder routes (/python, /typescript).
  • Both files use export const dynamic = "force-static"; to ensure they are correctly generated as static assets during the next build process, which is necessary because the project is configured with output: "export".

Verification:

  • Ran pnpm build and verified that out/sitemap.xml and out/robots.txt are correctly generated.
  • Ran pnpm lint, pnpm run typecheck, and pnpm test to ensure project integrity.

PR created automatically by Jules for task 2994241262552394057 started by @amrabed

- 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.
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread src/app/sitemap.ts
- 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.
@amrabed amrabed marked this pull request as ready for review June 30, 2026 15:47
@amrabed amrabed merged commit b7bf5e7 into main Jun 30, 2026
1 check passed
@amrabed amrabed deleted the feat/add-seo-metadata-files-2994241262552394057 branch June 30, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant