Skip to content

Commit

Permalink
feat: add metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdibha committed Jan 23, 2024
1 parent fd40f8c commit e715078
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 21 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"db:studio": "prisma studio",
"db:generate": "prisma generate",
"postinstall": "prisma generate",
"postbuild": "next-sitemap",
"prepare": "husky install"
},
"dependencies": {
Expand Down Expand Up @@ -55,7 +54,6 @@
"nanoid": "^5.0.4",
"next": "^14.0.4",
"next-auth": "^4.24.5",
"next-sitemap": "^4.2.3",
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
Binary file added public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/android-chrome-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 0 additions & 19 deletions public/site.webmanifest

This file was deleted.

28 changes: 28 additions & 0 deletions src/app/mannifest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { MetadataRoute } from "next";
import { siteConfig } from "@/config";

const config = siteConfig.global;

export default function manifest(): MetadataRoute.Manifest {
return {
name: config.name,
short_name: config.name,
description: config.description,
start_url: "/",
display: "standalone",
background_color: "#fff",
theme_color: "#fff",
icons: [
{
src: "/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/android-chrome-384x384.png",
sizes: "384x384",
type: "image/png",
},
],
};
}
13 changes: 13 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { MetadataRoute } from "next";

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: "/account/",
},

sitemap: "https://vapi.tn/sitemap.xml",
};
}
24 changes: 24 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { MetadataRoute } from "next";

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://vapi.tn",
lastModified: new Date(),
changeFrequency: "daily",
priority: 1,
},
// {
// url: 'https://acme.com/about',
// lastModified: new Date(),
// changeFrequency: 'monthly',
// priority: 0.8,
// },
// {
// url: 'https://acme.com/blog',
// lastModified: new Date(),
// changeFrequency: 'weekly',
// priority: 0.5,
// },
];
}

0 comments on commit e715078

Please sign in to comment.