Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reflex/.templates/web/utils/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ export const getToken = () => {
* @returns The given URL modified to point to the actual backend server.
*/
export const getBackendURL = (url_str) => {
if ((url_str ?? undefined) === undefined) {
url_str = env.PING;
}
// Get backend URL object from the endpoint.
const endpoint = new URL(url_str);
if (
Expand Down
Loading