Configuration

You can customize your Nitro server with single configuration file: nitro.config.ts.

All deployment providers are built on the same options API.

If you are using Nuxt, use the nitro option in your Nuxt config.

nitro.config.ts
import { defineNitroConfig } from 'nitropack/config'

export default defineNitroConfig({
  // Nitro options
})
nuxt.config.ts
export default defineNuxtConfig({
  nitro: {
    // Nitro options
  }
})

Read all the available options to configure Nitro.

Nitro loads the configuration using unjs/c12, giving more possibilities such as using .nitrorc.

.nitrorc
timing=true
.nuxtrc
nitro.timing=true