Skip to content

Commit

Permalink
Add robots
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Nov 2, 2023
1 parent 9f04d3a commit 696b822
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { MetadataRoute } from "next";
import { BASE_URL } from "@/config";

const robots = (): MetadataRoute.Robots => ({
rules: {
userAgent: "*",
allow: "/",
},
sitemap: `${BASE_URL}/sitemap.xml`,
});

export default robots;
2 changes: 2 additions & 0 deletions config/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const BASE_URL: string = `https://singapore-ev-trends.ruchern.xyz`;

export const FUEL_TYPE = {
DIESEL: "Diesel",
ELECTRIC: "Electric",
Expand Down

0 comments on commit 696b822

Please sign in to comment.