Closed 123MwanjeMike closed 3 years ago
After more analysis, I figured that this error seems not to occur if a pre built folder is pushed to remote unlike when built by the - run: rm -rf node_modules && yarn install --frozen-lockfile && yarn build
step
@123MwanjeMike do you see anything in the JS console when you load the preview URL in your browser? Does the HTML look like you'd expect? I ask because if Firebase Hosting is serving anything besides a 404 error page, my guess is that this is a bug in your app, and not an issue with the GitHub action.
@jhuleatt the HTML I see is the default content of the build/index.html file only. This I think is because it does not "rewrite all urls to /index.html" as should be the case for Single Page Applications. I however doubt it's a bug with with my app because its hosted and working fine on firebase hosting(using cloud build), but let me continue to investigate it.
I figured it was a problem with my firebase configurations as I had not added the environment variables to the build step
Action config
.github/workflows/firebase-hosting-pull-request.yml
.firebase.json
Error message
No error message is given
Expected behavior
Website at preview URL with web content
Actual behavior
Website at preview URL is a blank white screen without any web content
Note: PROJECT_ID is not a variable, it's a place holder for my project ID