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

Add next build [--output directory] option ? #765

Closed
zapkub opened this issue Jan 14, 2017 · 4 comments
Closed

Add next build [--output directory] option ? #765

zapkub opened this issue Jan 14, 2017 · 4 comments

Comments

@zapkub
Copy link

zapkub commented Jan 14, 2017

Hi,

I do some custom server load with babel,
so before goto production it need to be compiled to standard javascript in another build folder and it should include .next folder.

I wonder if this option may helpful ?

This is how I manage it now

#build.sh
#!/usr/bin/env bash

npm run clean

# next build ./src
npm run build 

cp -r ./src/.next ./build/.next
npm run build-server
@nkzawa
Copy link
Contributor

nkzawa commented Jan 14, 2017

I wonder why you'd like to move the .next directory since you wouldn't use it from custom server. Can you elaborate why you need to do that ?

@arunoda
Copy link
Contributor

arunoda commented Jan 14, 2017

Also we need to have next.config.js relative to the app dir. It's kind a confusing to move it to another place as well.

I suppose current way is better.

@zapkub
Copy link
Author

zapkub commented Jan 16, 2017

@nkzawa I put next inside my project src folder next ./src/ with KeystoneJS and it will be compiled and ship my build folder for deployment.

Is this what it suppose to be ?

Anyway I understand your point, will figure how to manage it properly.

Thanks

@timneutkens
Copy link
Member

@zapkub seems like your question is answered, I'm closing this for now. Feel free to re-open if needed ❤️

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants