-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Specify a different build directory instead of .next #1513
Comments
Would this be something that would like to be added via config? maybe next.config? If so, I can take a look at this? |
Yep. That's the api we could do it. |
Im having a look at this now. Is there any standards or practices against config? For sake of testing it out im running the following in
Have any other ideas? |
I'd like to see it like this: module.exports = {
options: {
dist: '.next'
}
} |
no worries, got some of it done last night. WIll continue with it tonight 👍 |
Pr incoming for this; just updating documentation. |
@abstractpoint @arunoda #1599 Opened a PR for it; let me know if any issues. |
* Update references to `.next` * Remove console logs and extraneous semi colons * Remove lint errors * Update references to .next and update docs * Update options from nested to flat with `distDir` * Add integration tests, and update `.gitignore` * Rename integration folder to dist-dir to match standards
@abstractpoint this is now merged if you want to try on latest master. |
@alexnewmannn Working great, super useful. Thank you for putting in the time! (Still battling with Firebase being too slow running next, but that's not really related) |
I am trying to deploy next to Firebase functions, and It looks like the .next build directory is ignored by firebase cli.
Firebase cli seems to ignore all hidden files, so I want to use a differently named directory.
The directory seems to be hardcoded in 3 places:
/dist/bin/next-start
/dist/server/build/clean.js
/dist/server/build/index.js
The text was updated successfully, but these errors were encountered: