Elffuss BraidHub

kikocis/osiris public

master · 928 BRawPermalink
1import type { NextConfig } from "next";
2
3const nextConfig: NextConfig = {
4 output: 'standalone',
5 serverExternalPackages: ['ws'],
6 transpilePackages: ['react-map-gl', 'mapbox-gl', 'maplibre-gl'],
7 typescript: {
8 ignoreBuildErrors: true,
9 },
10 images: {
11 remotePatterns: [
12 { protocol: 'https', hostname: '**' },
13 ],
14 },
15 async headers() {
16 return [
17 {
18 source: '/(.*)',
19 headers: [
20 { key: 'Content-Security-Policy', value: "default-src 'self' 'unsafe-inline' 'unsafe-eval' https: wss: data: blob:;" },
21 { key: 'Strict-Transport-Security', value: 'max-age=31536000; includeSubDomains' },
22 { key: 'X-Content-Type-Options', value: 'nosniff' },
23 { key: 'X-Frame-Options', value: 'SAMEORIGIN' },
24 { key: 'X-XSS-Protection', value: '1; mode=block' },
25 ],
26 },
27 ];
28 },
29};
30
31export default nextConfig;