Skip to content

Commit

Permalink
fix: backend url
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Aug 23, 2024
1 parent 58303e5 commit c9d925d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/js/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const playgroundOptions = {

function getBackendUrl() {
var backendUrl = window.plutoEnv.BACKEND_URL;
if (/http:\/\/localhost/g.test(backendUrl)) {
if (/http:\/\/0.0.0.0/g.test(backendUrl)) {
var parts = backendUrl.split(":");
var port = parts[parts.length - 1];

Expand Down

0 comments on commit c9d925d

Please sign in to comment.