-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
42 lines (41 loc) · 1.18 KB
/
next.config.js
File metadata and controls
42 lines (41 loc) · 1.18 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
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: { ignoreBuildErrors: true },
eslint: { ignoreDuringBuilds: true },
reactStrictMode: true,
swcMinify: true,
output: 'standalone',
images: {
unoptimized: true,
},
experimental: {
outputFileTracingRoot: undefined,
serverComponentsExternalPackages: ['better-sqlite3', 'bcryptjs'],
},
async rewrites() {
return [{ source: '/api/openapi.json', destination: '/api/openapi' }];
},
async redirects() {
return [
{ source: '/survey', destination: '/operator-intake', permanent: true },
{ source: '/test-supabase', destination: '/test-sqlite', permanent: false },
{ source: '/test-supabase/:path*', destination: '/test-sqlite/:path*', permanent: false },
];
},
async headers() {
return [
{
source: '/:path*',
headers: [
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
{
key: 'Permissions-Policy',
value: 'camera=(), microphone=(), geolocation=()',
},
],
},
];
},
};
module.exports = nextConfig;