Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Web app deployed on cloud run getting auto reload

I have a deployed web app(Vue3) on cloud run. The URL that I use to browse the deployed app gets reloaded after every 1 minute or so.
For ex, even I am on the same landing page for a minute or so, even in the middle of any task(filling form fields), the page gets reloaded/ refreshed.

Need help asap for the same.

0 2 958
2 REPLIES 2

Is your web app using environment variables? If so, is there an issue as shown in this Stack Overflow question:

Q: The following works fine locally (running from a built docker container). However, when I deploy to Google Cloud Run and go to the website, it results in an infinite reload loop

A: The reason for this seems to be because environment variables on Cloud Run are available at runtime but not build time, so the Docker environment (and server.js) does not have access to them from process.env Hardcoding the server environment variables (instead of reading them from Cloud Run) solves this issue.

See also:

Facing same issue with vue3. Did you get any solution?