Skip to content

Commit 8582471

Browse files
geo: remove /faq redirect so dedicated FAQ page is reachable
1 parent 46b5bd0 commit 8582471

1 file changed

Lines changed: 38 additions & 39 deletions

File tree

next.config.mjs

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
1-
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
async redirects() {
4-
return [
5-
{ source: '/pricing', destination: '/', permanent: true },
6-
{ source: '/faq', destination: '/', permanent: true },
7-
{ source: '/privacy', destination: '/about', permanent: true },
8-
{ source: '/terms', destination: '/about', permanent: true },
9-
]
10-
},
11-
async headers() {
12-
return [
13-
{
14-
source: '/(.*)',
15-
headers: [
16-
{ key: 'X-Content-Type-Options', value: 'nosniff' },
17-
{ key: 'X-Frame-Options', value: 'DENY' },
18-
{ key: 'X-XSS-Protection', value: '1; mode=block' },
19-
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
20-
{ key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()' },
21-
{
22-
key: 'Content-Security-Policy',
23-
value: [
24-
"default-src 'self'",
25-
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com",
26-
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
27-
"font-src 'self' https://fonts.gstatic.com",
28-
"img-src 'self' data: blob: https://img.shields.io https://avatars.githubusercontent.com",
29-
"connect-src 'self' https://vitals.vercel-insights.com https://va.vercel-scripts.com",
30-
"frame-ancestors 'none'",
31-
].join('; '),
32-
},
33-
],
34-
},
35-
]
36-
},
37-
}
38-
39-
export default nextConfig
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
async redirects() {
4+
return [
5+
{ source: '/pricing', destination: '/', permanent: true },
6+
{ source: '/privacy', destination: '/about', permanent: true },
7+
{ source: '/terms', destination: '/about', permanent: true },
8+
]
9+
},
10+
async headers() {
11+
return [
12+
{
13+
source: '/(.*)',
14+
headers: [
15+
{ key: 'X-Content-Type-Options', value: 'nosniff' },
16+
{ key: 'X-Frame-Options', value: 'DENY' },
17+
{ key: 'X-XSS-Protection', value: '1; mode=block' },
18+
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
19+
{ key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()' },
20+
{
21+
key: 'Content-Security-Policy',
22+
value: [
23+
"default-src 'self'",
24+
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://va.vercel-scripts.com",
25+
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
26+
"font-src 'self' https://fonts.gstatic.com",
27+
"img-src 'self' data: blob: https://img.shields.io https://avatars.githubusercontent.com",
28+
"connect-src 'self' https://vitals.vercel-insights.com https://va.vercel-scripts.com",
29+
"frame-ancestors 'none'",
30+
].join('; '),
31+
},
32+
],
33+
},
34+
]
35+
},
36+
}
37+
38+
export default nextConfig

0 commit comments

Comments
 (0)