Nuxt.js: support $XDG_CONFIG_HOME for `.nuxtrc`

Created on 18 Nov 2020  路  2Comments  路  Source: nuxt/nuxt.js

It would be great if Nuxt.js follows the XDG Base Directory Specification. Instead of placing the file .nuxtrc in the home directory it should be placed in the OS specific appropriate directory. Getting the correct directory is easy with a module like env-paths.

This, among other things, allows a user to specify a directory in which they want all applications to look for their user configurable setting files and keep their home directory clean. Though I'm not sure if this is really a config file, the telemetry seed is not something to expect in a dotfile... Perhaps it's appropriate in the cache directory.

What is Expected?

The .nuxtrc file is saved in the appropriate OS directory.

What is actually happening?

The .nuxtrc file is saved in home.

feature-request

Most helpful comment

Hi. support added in 1.2.0 you may use npm up rc9 or yarn upgrade rc9 to quickly get latest version .

All 2 comments

Hi @Siilwyn. You can track issue here: https://github.com/nuxt-contrib/rc9/issues/1 (Also PR welcome)

Hi. support added in 1.2.0 you may use npm up rc9 or yarn upgrade rc9 to quickly get latest version .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gary149 picture gary149  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

uptownhr picture uptownhr  路  3Comments

jaredreich picture jaredreich  路  3Comments

bimohxh picture bimohxh  路  3Comments