Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): support nuxtrc in dist directory #9280

Merged
merged 8 commits into from May 17, 2021
3 changes: 2 additions & 1 deletion packages/config/src/load.js
Expand Up @@ -88,9 +88,10 @@ export async function loadNuxtConfig ({
}

// Load Combine configs
// Priority: configOverrides > nuxtConfig > .nuxtrc > .nuxtrc (global)
// Priority: configOverrides > .nuxt/dist/.nuxtrc > nuxtConfig > .nuxtrc > .nuxtrc (global)
options = defu(
configOverrides,
rc.read({ name: '.nuxtrc', dir: path.resolve(options.buildDir || '.nuxt', 'dist') }),
danielroe marked this conversation as resolved.
Show resolved Hide resolved
danielroe marked this conversation as resolved.
Show resolved Hide resolved
options,
rc.read({ name: '.nuxtrc', dir: options.rootDir }),
rc.readUser('.nuxtrc')
Expand Down