import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  allowedDevOrigins: ['192.168.18.93', 'localhost'],
  // Keep Turbopack rooted at this app. The repository also contains the
  // legacy project/frontend/package-lock.json; without an explicit root,
  // Next.js 16 may infer the wrong workspace during production builds.
  turbopack: {
    root: __dirname,
  },
  outputFileTracingRoot: __dirname,
  images: {
    remotePatterns: [
      { protocol: 'https', hostname: '**' },
    ],
  },
};

export default nextConfig;
