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
Create full path to distDir #1645
Conversation
+1, but a test would be nice |
Agreed. I'll try to get to it later tonight if I get a free moment. |
So I've been looking into this more deeply and I think there was some dangerous code introduced in #1599 that needs to be fixed ASAP. For example, in my project I have I don't see any good reason for the changes to I really wish I could take this on myself but I just don't have the time right now. But I do think this needs some serious attention as soon as someone can. Particularly in both As for my minor modifications in this pull request, I think they can be disregarded for now and once these other issues are cleared up this can be readdressed. It should be as easy as adding something like |
@dizlexik If i remember correctly @dizlexik the only changes in |
@dizlexik I have a fix for this, the 3 tasks work as normal, theres a little change made to the webpack config but build, start, dev all work fine and create the folder as intended. They just do it in different ways. |
Merged @alexnewmannn's PR |
@rauchg not sure my PR fixes what this one was trying to achieve, was just fixing the additional work he was planning |
I see, so we still need to run |
yes i believe so
…On Fri, 7 Apr 2017 at 18:04, Guillermo Rauch ***@***.***> wrote:
I see, so we still need to run mkdirp correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1645 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFExrygg81ZES61Ais5-1mNp8VIC5llyks5rtmy1gaJpZM4M2ERq>
.
|
Thanks @alexnewmannn for fixing that distDir issue. I made this mkdirp change again to the latest master but now I'm running into another issue related to distDir that's preventing me from running in production mode. Within the constructor in I don't know how many other areas may be affected by this, but I quickly skimmed through the rest of that file and I see at least a few other places where I'll hold off just a bit longer on my change until I'm able to produce a reliable production build. |
i think i'm following, maybe this is highlighting we should have tests that cover a production build? i'm on my phone at the moment, are you available on the zeit slack? i'm also thinking we could potentially pass the config in here, although i need to read the code properly when i get to a computer https://github.com/zeit/next.js/blob/9347c8bdd010742c55dde14c7975afb8e8704cf2/bin/next-start#L51 |
Tried running this in similar circumstances to @dizlexik and can't recreate. Production builds run fine, also with koa as used by dizlexik. Will take a look at this extra issue if recreation steps are possible :) |
I think I see where the disconnect is here. My build process also includes building my server-side code, which ends up in |
I think so, can you maybe upload a zip of a hello world build process/project in a simplified form? If so i can take a look, otherwise ill just be guessing |
I'm going to close this. |
I tried setting
distDir
todist/client
and my build failed sincedist
didn't exist yet. This should resolve that issue.Btw, I didn't have time to do a proper pull request for this so I did a quick file edit directly on GitHub. Seems safe enough for this minor change.