Add robots.ts - #129
Merged
Merged
Conversation
sitemap.ts already existed; this adds the missing robots route. Allows crawling, points at the sitemap, and keeps /auth, /login and the PWA /offline fallback out of the index. Closes StudentSuite#119
Contributor
|
@ResourceMint is attempting to deploy a commit to the studentsuite Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #119.
What this changes
Adds
src/app/robots.ts.src/app/sitemap.tsalready existed onmainand covers the static routes,docsPages, and/legal/*, so only the robots half of the issue was outstanding.The route allows crawling, points at
${site.url}/sitemap.xml, and disallows/auth/,/login, and the PWA/offlinefallback.Per-city pages (#127) have not landed yet, so nothing was added for them.
Type of change
Proof (required for new public places)
N/A, no places added in this PR.
gmaps_linkandadded_by(no proof fields committed). - N/AChecklist
Verifying
npx tsc --noEmitandnpx eslint src/app/robots.tsare clean.npm run buildlists both/robots.txtand/sitemap.xmlas prerendered static routes.Generated
robots.txt:Generated
sitemap.xml: 25 URLs, no duplicates (sort | uniq -dempty), nothing under/author/login.