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

How to change nuxt build context when building programatically #1093

Closed
nidin opened this issue Jul 16, 2017 · 3 comments
Closed

How to change nuxt build context when building programatically #1093

nidin opened this issue Jul 16, 2017 · 3 comments
Labels

Comments

@nidin
Copy link

nidin commented Jul 16, 2017

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?

This question is available on Nuxt.js community (#c954)
@pi0
Copy link
Member

pi0 commented Jul 16, 2017

Hi. Please check srcDir and rootDir options.

@pi0 pi0 closed this as completed Jul 16, 2017
@nidin
Copy link
Author

nidin commented Jul 17, 2017

@pi0 Thanks, its working great.

@lock
Copy link

lock bot commented Nov 3, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 3, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants