Skip to content

Commit

Permalink
chore: update sitemap and robots
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed May 27, 2024
1 parent c206d32 commit f4ddc93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
const hostUrl: string =
process.env.WEBSITE_URL ??
"https://gabriel-logan.github.io/multiform-validator";

return {
rules: {
userAgent: "*",
},
sitemap: "https://multiform-validator.3utilities.com/sitemap.xml",
sitemap: `${hostUrl}/sitemap.xml`,
};
}
4 changes: 3 additions & 1 deletion docs/src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { MetadataRoute } from "next";

const hostUrl: string = "https://multiform-validator.3utilities.com";
const hostUrl: string =
process.env.WEBSITE_URL ??
"https://gabriel-logan.github.io/multiform-validator";

function generateJsMaps(): MetadataRoute.Sitemap {
const prefix: string = "documentation/js/functions";
Expand Down

0 comments on commit f4ddc93

Please sign in to comment.