-
Notifications
You must be signed in to change notification settings - Fork 917
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
Next.js SSR Deployment fails due to wrong firebase-tools creating wrong folder #7062
Comments
This seems to have been introduced in 13.7.0 because 13.6.1 works. |
Hey @tobenna-wes-re, thanks for reaching out, sorry to hear you encountered this issue. I’m currently trying to reproduce this, but so far I’m unable to replicate the behavior you mentioned. The steps I took to reproduce the issue were:
I tried the above steps using firebase-tools v13.7.0 and v13.7.5, and no errors were raised during deployment. In case I’m missing anything here, please let me know. Also, could you provide additional details on the steps you took to set up your Next.js project? |
same issue. deploy command
firebase.json
maybe, similar problem. Sorry for my poor English. |
Hey @manabu0926, #7054 seems to be a different issue. From what I can tell, the initial report here is that the Firebase CLI generates a wrong folder structure. Instead of creating If you’re encountering an If you’re encountering an issue similar to #7054, could you try the workarounds provided #7054 (comment) and #7054 (comment) to see if you’d be able to deploy successfully? |
The above workaround solved my problem. |
I am using typescript. This is my tsconfig.json
and my firebase.json
|
@aalej This is correct. Instead of creating |
@leoortizz PTAL |
Hey @tobenna-wes-re, apologies for this. I just created #7099 that should fix it. In the meantime, you can change your hosting source from
to
which should fix the wrong generated path issue. As soon as #7099 is merged and available in the next release of firebase-tools, both versions should work. |
[REQUIRED] Environment info
13.7.5
firebase-tools:
macOS
Platform:
[REQUIRED] Test case
Deployment of Next using Firebase Webframeworks due to firebase creating wrong ssr folder
[REQUIRED] Steps to reproduce
run
firebase deploy --only hosting
when using next.js[REQUIRED] Expected behavior
.next
should be in the a sub directory of thefunctions
[REQUIRED] Actual behavior
I get
functions.next
instead. This then leads to firebase uploading the files without the ssr filesThis then leads to a server error
Error: ENOENT: no such file or directory, open '/workspace/.next/BUILD_ID'
The text was updated successfully, but these errors were encountered: