Skip to content

Commit

Permalink
chore(vercel): add basic seo
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Feb 29, 2024
1 parent 8345dfd commit 737559e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 29 deletions.
6 changes: 6 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Metadata } from 'next'
import { cookies } from 'next/headers'
import { Analytics } from '@vercel/analytics/react'
import { SpeedInsights } from '@vercel/speed-insights/next'
Expand All @@ -9,6 +10,11 @@ import {
GlobalLayout,
} from './providers'

export const metadata: Metadata = {
title: 'Groupher | 让你的产品听见用户的声音',
description: '讨论区、看板、更新日志、帮助文档多合一,收集沉淀用户反馈,助你打造更好的产品。',
}

export default function Layout({ children }: { children: React.ReactNode }) {
const token = cookies().get('jwtToken')?.value || null

Expand Down
58 changes: 29 additions & 29 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"headers": [
{
"source": "/",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=600, stale-while-revalidate=30"
}
]
},
{
"source": "/pricing",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=600, stale-while-revalidate=30"
}
]
},
{
"source": "/(.+\\.png)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/pricing",
"headers": [
{
"key": "Cache-Control",
"value": "s-maxage=600, stale-while-revalidate=30"
}
]
},
{
"source": "/(.+\\.png)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}

0 comments on commit 737559e

Please sign in to comment.