We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a52d240 commit be43052Copy full SHA for be43052
1 file changed
reflex/.templates/web/utils/state.js
@@ -89,6 +89,9 @@ export const getToken = () => {
89
* @returns The given URL modified to point to the actual backend server.
90
*/
91
export const getBackendURL = (url_str) => {
92
+ if ((url_str ?? undefined) === undefined) {
93
+ url_str = env.PING;
94
+ }
95
// Get backend URL object from the endpoint.
96
const endpoint = new URL(url_str);
97
if (
0 commit comments