-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
67 lines (65 loc) · 2.5 KB
/
next.config.ts
File metadata and controls
67 lines (65 loc) · 2.5 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
typescript: {
// Disable TypeScript during production build for now
ignoreBuildErrors: true,
},
eslint: {
// Disable ESLint during production build for now
ignoreDuringBuilds: true,
},
// Sentry configuration removed - instrumentationHook is deprecated in Next.js 15
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'Content-Security-Policy',
value: [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://auth.privy.io https://www.googletagmanager.com https://js.stripe.com https://app.unlock-protocol.com https://unlock-protocol.com https://cdnjs.cloudflare.com https://embedded-wallets.privy.io https://unpkg.com",
"worker-src 'self' blob: https://unpkg.com",
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
"font-src 'self' https://fonts.gstatic.com",
"img-src 'self' data: https: blob:",
"connect-src 'self' https://mainnet.optimism.io https://auth.privy.io https://api.stripe.com https://app.unlock-protocol.com https://unlock-protocol.com https://cdnjs.cloudflare.com https://embedded-wallets.privy.io https://o555569.ingest.sentry.io wss:",
"frame-src 'self' https://js.stripe.com https://hooks.stripe.com https://app.unlock-protocol.com https://unlock-protocol.com",
"object-src 'none'",
"base-uri 'self'",
"form-action 'self'",
"frame-ancestors 'self' https://app.unlock-protocol.com https://unlock-protocol.com",
].join('; '),
},
{
key: 'Permissions-Policy',
value: [
'camera=()',
'microphone=()',
'geolocation=()',
'payment=(self "https://app.unlock-protocol.com" "https://unlock-protocol.com")',
'usb=()',
'magnetometer=()',
'gyroscope=()',
'accelerometer=()',
].join(', '),
},
{
key: 'X-Frame-Options',
value: 'DENY',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
],
},
];
},
};
export default nextConfig;