40 lines
955 B
TypeScript
40 lines
955 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: 'standalone',
|
|
reactStrictMode: true,
|
|
poweredByHeader: false,
|
|
serverExternalPackages: ['postgres'],
|
|
transpilePackages: [
|
|
'@devrunbook/config',
|
|
'@devrunbook/content',
|
|
'@devrunbook/db',
|
|
'@devrunbook/ui',
|
|
],
|
|
experimental: {
|
|
typedEnv: true,
|
|
},
|
|
async headers() {
|
|
return [
|
|
{
|
|
source: '/:path*',
|
|
headers: [
|
|
{ key: 'X-Content-Type-Options', value: 'nosniff' },
|
|
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
|
|
{ key: 'X-Frame-Options', value: 'DENY' },
|
|
{
|
|
key: 'Strict-Transport-Security',
|
|
value: 'max-age=31536000; includeSubDomains',
|
|
},
|
|
{
|
|
key: 'Permissions-Policy',
|
|
value: 'camera=(), microphone=(), geolocation=()',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|