import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  compress: false,
  allowedDevOrigins: [
    "local-origin.dev",
    "*.local-origin.dev",
    "172.17.96.1",
    "192.168.1.135",
    "0.0.0.0",
  ],
  async rewrites() {
    return [
      {
        source: "/api/:path*",
        destination: "http://127.0.0.1:7153/api/:path*",
      },
    ];
  },
  output: "standalone",
};

export default nextConfig;
