优化seo

This commit is contained in:
yezian 2024-05-09 22:03:20 +08:00
parent aee24cb026
commit 1ca08a17e1
4 changed files with 45 additions and 3 deletions

View File

@ -40,7 +40,6 @@ export default function StreamerDetail({ params }) {
} }
); );
const detailData = await detailResponse.json(); const detailData = await detailResponse.json();
console.log(detailData);
if (detailData.ret === -1) { if (detailData.ret === -1) {
Toast.show({ Toast.show({
content: detailData.msg, content: detailData.msg,

View File

@ -1,9 +1,20 @@
import "./globals.css"; import "./globals.css";
export const metadata = { export const metadata = {
title: "铁粉空间APP", title: "铁粉空间",
description: "与Ta永不失联", description: "与Ta永不失联",
keywords: ["社交", "网红", "粉丝", "创作者", "变现", "平台", "铁粉", "空间"], keywords: [
"铁粉空间",
"铁粉空间APP",
"社交",
"网红",
"粉丝",
"创作者",
"变现",
"平台",
"铁粉",
"空间",
],
}; };
export const viewport = { export const viewport = {

22
app/robots.js Normal file
View File

@ -0,0 +1,22 @@
export default function robots() {
return {
rules: {
userAgent: "*",
allow: "/",
disallow: [
"/doc/",
"/help/",
"/bill/",
"/generatelink/",
"/invite/",
"/pay/",
"/purchased/",
"/tool/",
"/verification/",
"/vip/",
"/withdrawal/",
],
},
sitemap: "https://tiefen.fun/sitemap.xml",
};
}

10
app/sitemap.js Normal file
View File

@ -0,0 +1,10 @@
export default function sitemap() {
return [
{
url: "https://tiefen.fun",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 1,
},
];
}