-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvercel.ts
More file actions
38 lines (36 loc) · 1.11 KB
/
vercel.ts
File metadata and controls
38 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { routes, type VercelConfig } from '@vercel/config/v1';
import { articles, categories, members, pages } from './redirects';
export const config: VercelConfig = {
redirects: [
routes.redirect('/', '/fr', { permanent: true }),
...[...categories, ...pages, ...members, ...articles].map((category) =>
routes.redirect(category.source, category.destination, {
statusCode: category.statusCode,
})
),
],
headers: [
routes.header('/(.*)', [{ key: 'X-Robots-Tag', value: 'noindex' }], {
has: [{ type: 'host', value: 'bearstudio-site-2026.vercel.app' }],
}),
routes.header('/(.*)', [
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
{
key: 'Link',
value:
'</llms.txt>; rel="service-doc"; type="text/plain", </llms.txt>; rel="describedby"; type="text/plain", </sitemap-index.xml>; rel="sitemap"; type="application/xml"',
},
]),
],
};