---
title: "Configuration"
description: "Where each setting lives, as to change X, edit Y: the module options, the environment, the app config, the labels, the backend files and the catalog."
canonical_url: "https://nuxt-backend.dev/docs/reference/configuration"
---
# Configuration

> Where each setting lives, as to change X, edit Y: the module options, the environment, the app config, the labels, the backend files and the catalog.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

Every setting has a default, and the env is read on its own, so the smallest config is the module alone. To change one thing, find it in the table below: it names the file to edit and the page that lists every setting that file holds.

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['nuxt-backend'],
})
```

<table>
<thead>
  <tr>
    <th>
      To change
    </th>
    
    <th>
      Edit
    </th>
    
    <th>
      Reference
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      The deployment's URL, the auth route, where pages mount or whether they do, the redirect after sign-in, the DevTools tab, whether the package CSS loads
    </td>
    
    <td>
      <code>
        backend
      </code>
      
       in <code>
        nuxt.config.ts
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/module-options">
        Module options
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Secrets, the app's origin, provider keys, the kind of deployment (<code>
        BACKEND_ENVIRONMENT
      </code>
      
      )
    </td>
    
    <td>
      <code>
        .env.local
      </code>
      
      , then <code>
        npx nuxt-backend env push
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/environment-variables">
        Environment variables
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      The plan cards, the brand, any word on a page
    </td>
    
    <td>
      <code>
        backend
      </code>
      
       in <code>
        app.config.ts
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/app-config">
        App config
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      One word, or a translation
    </td>
    
    <td>
      <code>
        labels
      </code>
      
       in <code>
        app.config.ts
      </code>
      
      , or <code>
        @nuxtjs/i18n
      </code>
      
       messages
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/labels">
        Labels
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Auth, billing, email, AI, access tiers and routes
    </td>
    
    <td>
      The files in <code>
        backend/
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/project-files">
        Project files
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Plans, packs, meters and features
    </td>
    
    <td>
      <code>
        backend/billing.catalog.ts
      </code>
      
      , then <code>
        billing sync
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/configuration/catalogs">
        Catalog files
      </a>
    </td>
  </tr>
</tbody>
</table>

The module takes a handful of [options](https://nuxt-backend.dev/docs/reference/configuration/module-options), all optional, and the [env](https://nuxt-backend.dev/docs/reference/configuration/environment-variables) names what the deployment holds. One variable, `BACKEND_ENVIRONMENT`, says what kind of deployment it is. A capability turns on when its env or its catalog exists, so no setting switches one on or off. Each path is declared once, in `nuxt.config`: the module carries the ones the backend links to into `paths.generated.ts` in the functions directory ([The paths file](https://nuxt-backend.dev/docs/reference/configuration/module-options#the-paths-file)).

The auth route is configured in [Auth setup](https://nuxt-backend.dev/docs/build/auth/setup#auth-route-and-options), which lists the three places it has to match.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
