// The result of this function will become globally available under window.settings in a totally static file at /js/settings.js.
// Post-build, it can be edited in {build_directory}/js/settings.js.
function createSettings(options) {
  return {
    build: {
      type: options.buildtype
    },
    process: {
      NODE_ENV: process.env.NODE_ENV,
      API_URL: process.env.API_URL,
      BASE_URL: process.env.BASE_URL
    },
    vic: {
      rateLimitAuthed: 1,
      rateLimitUnauthed: 0.05
    }
  };
}

module.exports = createSettings;

// The result of this function will become globally available under window.settings in a totally static file at /js/settings.js.
// Post-build, it can be edited in {build_directory}/js/settings.js.
function createSettings(options) {
  return {
    build: {
      type: options.buildtype
    },
    process: {
      NODE_ENV: process.env.NODE_ENV,
      API_URL: process.env.API_URL,
      BASE_URL: process.env.BASE_URL
    },
    vic: {
      rateLimitAuthed: 1,
      rateLimitUnauthed: 0.0
    }
  };
}

module.exports = createSettings;

Change default rate limit for unauthenticated users to 0.0 (#6944)