You are browsing Nuxt 2 docs. Go to Nuxt 3 docs, or learn more about Nuxt 2 Long Term Support.


Runtime config properties

Runtime config allows passing dynamic config and environment variables to the nuxt context. For more information of usage, please see runtime config guide


publicRuntimeConfig

  • Type: Object

Value of this object is accessible from both client and server using $config.

privateRuntimeConfig

  • Type: Object

Value of this object is accessible from server only using $config. Overrides publicRuntimeConfig for server.

Edit this page on GitHub Updated at Thu, Dec 18, 2025