Back to Nuxt

NUXT_B5003

docs/errors/b5003.md

4.5.2542 B
Original Source

B5003

You have custom keys under runtimeConfig.app, a namespace Nuxt reserves for internal values (such as baseURL and cdnURL). Custom keys here can collide with Nuxt's own config.

Resolution

Move custom keys to runtimeConfig.public (exposed to the client) or to a top-level custom namespace (server-only):

ts
export default defineNuxtConfig({
  runtimeConfig: {
    // instead of runtimeConfig.app.myKey
    public: {
      myKey: 'value',
    },
  },
})

::read-more{to="/docs/guide/going-further/runtime-config"} ::