add webmanifest and robots

This commit is contained in:
ppc
2024-08-08 19:40:56 +01:00
parent 32bf9f11f7
commit 91980c8a60
2 changed files with 44 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import {MetadataRoute} from 'next'
export default function manifest(): MetadataRoute.Manifest {
return {
id: '?pwa-home=1',
name: 'AimeNet',
description: 'Aime Card Switcher',
start_url: '/',
categories: ['utilities', 'games', 'entertainment'],
orientation: 'portrait-primary',
display: 'standalone',
background_color: '#140606',
theme_color: '#d2005b',
icons: [
{
src: '/favicon.ico',
sizes: 'any',
type: 'image/x-icon',
},
],
shortcuts: [
{
url: '/',
name: 'Servers',
description: 'View, add or connect to servers'
},
{
url: '/cards',
name: 'Cards',
description: 'Manage stored cards'
}
]
}
}
+10
View File
@@ -0,0 +1,10 @@
import { MetadataRoute } from 'next'
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
disallow: '/'
}
}
}