-
Notifications
You must be signed in to change notification settings - Fork 112
Set App Hosting overrides for NextJS apps without a Next Config #323
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with some comments
if (!userNextConfigExists) { | ||
console.log(`No Next config file found, creating one with Firebase App Hosting overrides`); | ||
try { | ||
await writeFile(join(projectRoot, DEFAULT_NEXT_CONFIG_FILE), defaultNextConfigForFAH()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does nextConfigFileName
include the default filename? Then we can drop nextConfigFileName
in favor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve, nit in comment
Currently we're skipping adding FAH overrides for Next projects that don't have a Next Config file.