Skip to content

Commit b992308

Browse files
committed
Optimize SEO
1 parent b31c6ca commit b992308

File tree

5 files changed

+31
-11
lines changed

5 files changed

+31
-11
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
## 临时邮箱
1+
## 📮 临时邮箱
2+
3+
匿名的一次性邮箱,保护您的个人电子邮件地址免受垃圾邮件的骚扰。
4+
5+
## 🎉 可以做什么?
6+
7+
- 用于注册不想暴露自己真实邮件地址的网站,以避免垃圾邮件的骚扰。
8+
- 用于在同一个平台注册多个账号,而又不需要去注册多个邮箱。
9+
10+
## ⚠️ 注意
11+
12+
- **❗接收到的邮件内容仅能保留10天**
13+
- **❗随机生成的邮箱地址任何人都可以使用,请勿用于注册重要账号**

app/api/mail/route.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ export async function GET(req: NextRequest) {
77
if (!to) {
88
return NextResponse.json({ error: "no email address" }, { status: 400 });
99
}
10-
const mailList = await fetchLast({
11-
to,
12-
since: new Date(new Date().getTime() - 86400000),
13-
});
10+
const mailList = await fetchLast({ to });
1411
return NextResponse.json(mailList);
1512
} catch (e: any) {
1613
return NextResponse.json({ error: e.message }, { status: 500 });

app/layout.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@ import React from "react";
44
import { Toaster } from "@/components/ui/toaster";
55

66
export const metadata: Metadata = {
7-
title: "临时邮箱",
8-
description: "临时邮箱",
7+
title: "临时邮箱 - 匿名的一次性邮箱",
8+
description:
9+
"临时邮箱 - 匿名的一次性邮箱,保护您的个人电子邮件地址免受垃圾邮件的骚扰。",
10+
keywords: [
11+
"免费",
12+
"临时邮箱",
13+
"匿名邮箱",
14+
"安全邮箱",
15+
"一次性邮箱",
16+
"电子邮件地址",
17+
],
918
appleWebApp: {
1019
title: "临时邮箱",
1120
},

components/header.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React from "react";
2-
import { Github } from "lucide-react";
2+
import { Github, ShieldCheck } from "lucide-react";
33
import { VERSION } from "@/lib/constant";
44

55
function Header() {
66
return (
77
<header className="h-16 shrink-0 border-b shadow-sm">
8-
<div className="mx-auto flex h-full w-[90%] max-w-4xl items-center justify-center gap-2 sm:justify-between">
9-
<span className="font-medium">临时邮箱</span>
8+
<div className="mx-auto flex h-full w-[90%] max-w-4xl items-center">
9+
<ShieldCheck strokeWidth={1.8} />
10+
<span className="ml-1 font-medium">临时邮箱</span>
11+
<span className="flex-1" />
1012
<a
1113
href="https://github.com/sunls24/temporary-mail"
1214
target="_blank"

lib/constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const domainList = ["@sliu.eu.org"];
22

3-
export const refreshSeconds = 10;
3+
export const refreshSeconds = process.env.NODE_ENV === "development" ? 100 : 10;
44

55
export const VERSION = "1.0.0";

0 commit comments

Comments
 (0)