NovuProvider not working in GCP
I am using novuprovider and a custom notification panel
its working good in dev env, https, http, when i build it with docker and run locally
but when it runs on the Google Cloud Run it dosent work and keeps loading
i checked the console so i saw that there are no request being sent from frontend
like the request to intialize session is being sent in dev env but not in deployed one on GCP
13 Replies
@Engineering can we get your help here today? π
if you want i can prepare a version to reproduce this ?
If you can @mohitxskull.dev that can be great, thank you!
Sorry to waste your time
When i created a minimal version to reproduce this issue, i was not able to eventhough the code is same
https://github.com/mohitxskull/novu-reproduce
its working on google cloud
GitHub
GitHub - mohitxskull/novu-reproduce
Contribute to mohitxskull/novu-reproduce development by creating an account on GitHub.
you can close this issue
So, does this repo contain the configurations that work with GCP?
There no special configuration
My code still mot working
But this one is working well and good
@mohitxskull.dev are you self hosting Novu here in google cloud platform virtual machine?
i am not self hosting
@mohitxskull.dev, you just advanced to level 1!
Found the issue, it was not related to novu
i deployed my code with hardcoded values not loading from env or api, it worked! π
@Tomer Barnea @Emil @Pawan Jain Thank you for your support
And novu is really good! π
Thank you for building novu!
The Client library are also written nicely so it was easy to integrate
this was the issue
https://stackoverflow.com/questions/69972329/how-to-access-env-variables-in-google-cloud-run-using-next-js
the NEXTPUBLIC env vars were not accesiable in frontend and thats why novu was not getting intialized
Thanks for sharing π
@mohitxskull.dev I'm glad you manage to find the issue! Thank you for circling back to us and letting us know!