T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/backups/lavocat.quebec/backup-20250730-021618/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/backups/lavocat.quebec/backup-20250730-021618/next.config.js
const fs = require('fs');
const path = require('path');

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,

  // Allow cross-origin requests from network IP
  allowedDevOrigins: ['10.119.255.188:3000', '10.119.255.188:3443', 'localhost:3000', 'localhost:3443'],
  // Configure images - HTTPS only
  images: {
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'localhost',
      },
      {
        protocol: 'https',
        hostname: 'action-collective.info',
      },
      {
        protocol: 'https',
        hostname: 'images.unsplash.com',
      },
    ],
    domains: [
      'www.adwavocats.com',
      // add other allowed domains here if needed
    ],
  },
  // Disable experimental features temporarily to fix Watchpack issue
  experimental: {
    // scrollRestoration: true, // Temporarily disabled
  },
  // Configure HTTPS for development
  webpack: (config, { isServer, dev }) => {
    if (!isServer) {
      config.resolve.fallback = {
        ...config.resolve.fallback,
        fs: false,
        net: false,
        tls: false,
      };
    }
    
    // Suppress CSS vendor prefix warnings in development
    if (dev) {
      config.infrastructureLogging = {
        level: 'error',
      };
      
      // Configure PostCSS to handle vendor prefixes properly
      config.module.rules.forEach(rule => {
        if (rule.oneOf) {
          rule.oneOf.forEach(oneOfRule => {
            if (oneOfRule.sideEffects === false) {
              oneOfRule.sideEffects = true;
            }
          });
        }
      });
      
      // Suppress CSS warnings in console
      config.stats = {
        ...config.stats,
        warningsFilter: [
          /Unknown property/,
          /Unknown pseudo-class/,
          /Unknown pseudo-element/,
          /Error in parsing value/,
          /Ruleset ignored due to bad selector/,
          /Declaration dropped/,
          /:host selector/,
        ],
      };
    }
    
    return config;
  },
  // Ensure proper asset prefix in development
  assetPrefix: process.env.NODE_ENV === 'development' ? undefined : undefined,
  // Configure base path if needed
  basePath: '',
  // Configure trailing slashes
  trailingSlash: false,
  // Configure headers with enhanced security
  async headers() {
    return [
      {
        source: '/:path*',
        headers: [
          {
            key: 'Strict-Transport-Security',
            value: 'max-age=31536000; includeSubDomains; preload'
          },
          {
            key: 'X-Content-Type-Options',
            value: 'nosniff'
          },
          {
            key: 'X-Frame-Options',
            value: 'DENY'
          },
          {
            key: 'X-XSS-Protection',
            value: '1; mode=block'
          },
          {
            key: 'Referrer-Policy',
            value: 'strict-origin-when-cross-origin'
          },
          {
            key: 'Permissions-Policy',
            value: 'camera=(), microphone=(), geolocation=()'
          }
        ]
      },
      {
        source: '/uploads/:path*',
        headers: [
          {
            key: 'X-Frame-Options',
            value: 'SAMEORIGIN',
          },
        ],
      },
      // Fix MIME type for webpack chunks
      {
        source: '/_next/static/chunks/:path*',
        headers: [
          {
            key: 'Content-Type',
            value: 'application/javascript; charset=utf-8'
          },
        ],
      },
      {
        source: '/_next/static/css/:path*',
        headers: [
          {
            key: 'Content-Type',
            value: 'text/css; charset=utf-8'
          },
        ],
      },
      // Fix MIME type for JavaScript files in public directory
      {
        source: '/:path*.js',
        headers: [
          {
            key: 'Content-Type',
            value: 'application/javascript; charset=utf-8'
          },
        ],
      },
      {
        source: '/:path*.css',
        headers: [
          {
            key: 'Content-Type',
            value: 'text/css; charset=utf-8'
          },
        ],
      },
    ];
  }
};

module.exports = nextConfig; 

CasperSecurity Mini