Skip to content

nuxt overrides $config.app #8991

@andrewspy

Description

@andrewspy

Versions

  • nuxt: v2.15.3
  • node: v12.16.3

Reproduction

https://github.com/andrewspy/nuxt-app-runtime-config

Additional Details

nuxt.config.js

  publicRuntimeConfig: {
    app: {
      name: '$config.app.name',
    },
    name: '$config.name',
  },

Steps to reproduce

  • See repo.
  • yarn dev

What is Expected?

$config.app should not be overridden.

What is actually happening?

nuxt overrides $config.app with the following:

  "app": {
    "basePath": "/",
    "assetsPath": "/_nuxt/",
    "cdnURL": null
  },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions