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

Next.js framework not detected in GitHub Action #6863

Open
deltaepsilon opened this issue Mar 9, 2024 · 2 comments · May be fixed by #6883
Open

Next.js framework not detected in GitHub Action #6863

deltaepsilon opened this issue Mar 9, 2024 · 2 comments · May be fixed by #6883

Comments

@deltaepsilon
Copy link

deltaepsilon commented Mar 9, 2024

Environment info

firebase-tools: 12.7.0

Platform: Ubuntu 22.04.3 LTS

Test case

I'm starting a fresh project with GitHub and the Next.js framework integration. I started from scratch this morning, and everything went well. I was able to deploy from my local machine and hosting picked it up.

Steps to reproduce

  1. I pushed to GitHub to make sure the integration was working and got the following error:
    image

  2. I added the env variable and pushed to master:
    image

  3. I got another error:
    image

Could not determine the web framework in use.
  ***
    "status": "error",
    "error": "Unable to detect the web framework in use, check firebase-debug.log for more info.\n\n\u001b[1mDocumentation:\u001b[[22](https://github.com/deltaepsilon/investor-portal/actions/runs/8214803231/job/22467610748#step:4:25)m [https://firebase.google.com/docs/hosting/frameworks/frameworks-overview\n\u001b[1mFile](https://firebase.google.com/docs/hosting/frameworks/frameworks-overview/n/u001b[1mFile) a bug:\u001b[22m https://github.com/firebase/firebase-tools/issues/new?template=bug_report.md\n\u001b[1mSubmit a feature request:\u001b[22m https://github.com/firebase/firebase-tools/issues/new?template=feature_request.md\n\nWe'd love to learn from you. Express your interest in helping us shape the future of Firebase Hosting: https://goo.gle/41enW5X"
  ***
  1. I tried switching the hosting.source key to hosting.public in firebase.json. That got rid of the error, but then my site didn't deploy. I got the dreaded "index.html missing" error page.

Expected behavior

I expected the GitHub deploy to work first try without any intervention, as I was using the default firebase init workflow.

Actual behavior

I got a series of two different errors in my GitHub Actions as described above ☝️

@aalej
Copy link
Contributor

aalej commented Mar 11, 2024

Hey @deltaepsilon, thanks for the report and for sharing the error logs you encountered. I’m able to reproduce this issue. I'll raise this to our engineering team to see what we can do here, and I’ll be marking this as reproducible.

@leoortizz leoortizz self-assigned this Mar 15, 2024
@leoortizz leoortizz linked a pull request Mar 15, 2024 that will close this issue
@ibrahimtuna
Copy link

Hi,

facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants