Skip to content

Commit

Permalink
fix: use PENGUIN_BUILDFROM the correct way
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 10, 2022
1 parent 7bf0fcd commit 6741b08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import axios from "axios";
import Console from "@/utils/Console";
import config from "@/config";
import i18n from "@/i18n";
import store from "@/store";
import Console from "@/utils/Console";
import mirror from "@/utils/mirror";
import axios from "axios";
import semver from "semver";
import config from "@/config";
import i18n from "@/i18n";

let baseURL;
if (mirror.global.isCurrent() || mirror.cn.isCurrent()) {
Expand All @@ -15,7 +15,7 @@ if (mirror.global.isCurrent() || mirror.cn.isCurrent()) {
// also use the relative path, but we left the task to WebpackDevServer for proxying local API responses
// so use relative path.
baseURL = "/PenguinStats/api/v2";
} else if (process.env.PENGUIN_BUILDFROM === "docker") {
} else if (PENGUIN_BUILDFROM === "docker") {
// docker build
// backend and frontend are on the same server
// so use relative path.
Expand Down

0 comments on commit 6741b08

Please sign in to comment.