text: 
  // next.config.js
  module.exports = {
    async headers() {
      return [
        {
          // matching all API routes
          source: "/api/:path",
          headers: [
            { key: "Access-Control-Allow-Credentials", value: "true" },
            { key: "Access-Control-Allow-Origin", value: "chicagophotoshop.photography" },
            { key: "Access-Control-Allow-Methods", value: "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
            { key: "Access-Control-Allow-Headers", value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" },
          ]
        }
      ]
    }
  };
  
  
  const withPlugins = require('next-compose-plugins');
  const withLess = require('next-with-less');
  
  const assetPrefix = process.env.ASSET_PREFIX || '';
  
  const plugins = [
    [
      withLess,
      {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: {
              '@primary-color': '#768BF9',
              '@text-color': 'rgba(255, 255, 255)',
              '@assetPrefix': assetPrefix || "''",
            },
            javascriptEnabled: true,
          },
        },
      },
    ],
  ];
  
  module.exports = withPlugins(plugins, {
    assetPrefix,
    reactStrictMode: true,
    eslint: {
      ignoreDuringBuilds: true,
    },
    env: {
      NEXT_PUBLIC_STORE_OWNER_ADDRESS:
        process.env.STORE_OWNER_ADDRESS ||
        process.env.REACT_APP_STORE_OWNER_ADDRESS_ADDRESS,
      NEXT_PUBLIC_STORE_ADDRESS: process.env.STORE_ADDRESS,
      NEXT_PUBLIC_BIG_STORE: process.env.REACT_APP_BIG_STORE,
      NEXT_PUBLIC_CLIENT_ID: process.env.REACT_APP_CLIENT_ID,
    },
    async rewrites() {
      return [
        {
          source: '/:any*',
          destination: '/',
        },
      ];
    },
  });