const path = require("path");

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: false,
  trailingSlash: true,
  devIndicators: false,
  images: { unoptimized: true },
  htmlLimitedBots: '.*',

  // Custom Webpack aliases
  webpack: (config) => {
    config.resolve.alias = {
      ...config.resolve.alias,
      "@": path.resolve(__dirname),
      "@/*": path.resolve(__dirname),
      "@/components": path.resolve(__dirname, "components"),
      "@/utils": path.resolve(__dirname, "utils"),
      "@/context": path.resolve(__dirname, "context"),
      "@/lib": path.resolve(__dirname, "lib"),
      "@/hooks": path.resolve(__dirname, "hooks"),
    };
    return config;
  },

  // Add empty Turbopack config to silence errors in dev
  turbopack: {},
};

module.exports = nextConfig;
