Configuration

Enlighten your Nuxt experience

You're not meant to fiddle with the config on your own, the CLI is here to do that for you! This page just exists for curious people and the sake of reference~

Where Is the Config Saved?

At ~/.nuxtrc! This is the standard config file Nuxt.js is using for global configuration thingy.

You probably already have one containing information for Nuxt Telemetry, the module Nuxt uses to know everything about your life and sell your data to Elon Musk collect anonymous telemetry data about general usage of Nuxt.js.

Interface

~/.nuxtrc
interface NuxtHueConfig extends NuxtConfig {
  // The buildModules array is actually used to enable/disable Nuxt Hue module
  buildModules: NuxtOptionsModule[];
  // Actual configuration used by the module, should fail gracefully if misconfigured
  hue: {
    bridge: {
      ip: string;
      id: string;
      username: string;
    };
    scenes: {
      start: {
        id: string;
        name: string;
      };
      error: {
        id: string;
        name: string;
      };
      end: {
        id: string;
        name: string;
      };
    };
    debug: boolean; // Used to display debug logs on the module
  };
}
Edit this page on GitHub Updated at Mon, May 22, 2023