Static GitHub Issues

[1093] How to change nuxt build context when building programatically

prev: Render multiple (SSR) states (locales with vue-i18n)
next: Enable pre-processors of global scss variables

I have following folder structure.

./ -|
     '- packages
               |_ client (nuxt app)
               |       |_ .nuxt
               |_ server (express api)
                        |_ dist

server is loading nuxt.config.js from client and building nuxt app using javascript api. at present nuxt is looking for dependencies in __dirname This will fail when run the app from root folder and server folder how to change this behaviour?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c954">#c954</a>)</em></sub></div>