Skip to content

Commit

Permalink
Target the right data server based on deploy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Aug 18, 2021
1 parent 9adeb76 commit 1280df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/utils/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ async function addToBuffer(id) {
}
export function getDataServerAddress() {
console.log("[data server address]", window.location.hostname);
if (process.env.NODE_ENV === "development") {
if (process.env.VUE_APP_DEPLOY_MODE === "local") {
return `//${window.location.hostname}:8901`;
}
return "https://data.slmn.gg";
Expand Down

0 comments on commit 1280df2

Please sign in to comment.