SPB Git

spb/rareindex

Public
995 B · 32 lines typescript
1import type { NextConfig } from 'next';23const nextConfig: NextConfig = {4  reactStrictMode: true,5  poweredByHeader: false,6  // Workspace packages are consumed as TypeScript sources.7  transpilePackages: ['@rareindex/shared', '@rareindex/database', '@rareindex/taxonomy', '@rareindex/connectors'],8  serverExternalPackages: ['postgres', 'pino', 'cheerio'],9  images: {10    remotePatterns: [{ protocol: 'https', hostname: '**' }],11    formats: ['image/avif', 'image/webp'],12  },13  experimental: {14    optimizePackageImports: ['lucide-react'],15  },16  async headers() {17    return [18      {19        source: '/(.*)',20        headers: [21          { key: 'X-Content-Type-Options', value: 'nosniff' },22          { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },23          { key: 'X-Frame-Options', value: 'SAMEORIGIN' },24          { key: 'Permissions-Policy', value: 'camera=(self), microphone=(), geolocation=()' },25        ],26      },27    ];28  },29};3031export default nextConfig;32
Files · d4cbf87a4d6431f74690ca22ffff043c6ca7da5d
Menu

Theme