Open nidegen opened 1 year ago
So the root cause here, is that out of box we only include the compiled nextjs application when we build the Cloud Function. We need a way to allow you to override the "ignores" in the code-generated Cloud Function. I expect it would look something like firebase.json
hosting.frameworksBackend.ignore = ['node_modules', ...]
That sounds good!
Is this expected to be fixed or do I need to file a bug report or so? Maybe I can also make a PR.
Ping?😅
Fixed in https://github.com/firebase/firebase-tools/pull/5788 I guess :)
Hmm, that was too quick. I still get errors for server-side rendered content :(
Yeah, we still need an explicit ignores override for the Cloud Function.
I am facing the very same issue trying to host nextjs app with next-i18next... is there any way the hosting to actually find this file?
I am also getting this error: Error: next-i18next was unable to find a user config at /workspace/next-i18next.config.js Please update if this will be fixed soon, or any workaround is available. Thanks
Not sure if this should be considered as a workaround... We changed the project to deploy to Google App Engine and seems the nextjs app works after that.
We changed the project to deploy to Google App Engine and seems the nextjs app works after that.
nextjs hosting works in general, but its not working if you configure nextjs recommended internationalization (next-i18next). It actually blocks my company webpage to go multilingual.
Is there any way I can add files to hosting root manually?
So @alexastrum, how is it going;)
BTW: @mathantunes showed me a workaround by copying next-i18mext.config.js
to /public
and registering into an .env
fiel as
I18NEXT_DEFAULT_CONFIG_PATH="./public/next-i18next.config.js"
BTW: @mathantunes showed me a workaround by copying
next-i18mext.config.js
to/public
and registering into an.env
fiel asI18NEXT_DEFAULT_CONFIG_PATH="./public/next-i18next.config.js"
Yeah, thanks for that!
Environment info
firebase-tools: 11.24.1
Platform: macOS 13.1
Test case
Web-i18n.zip
Steps to reproduce
Run
firebase deploy
and go to<host>/invite/random-id
.Expected behavior
One receives a page that encodes the current URL in a QR code.
Actual behavior
One gets a 500 error. In the logs this looks like:
Some further info as how I tried to fix it unsuccessfully so far can be found here.