Update nginx routes
This commit is contained in:
@@ -20,10 +20,7 @@ function getCookie(name: string) {
|
|||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiBase =
|
const apiBase = import.meta.env.DEV ? "http://localhost:8081/users" : "/users";
|
||||||
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
||||||
? "http://localhost:8081/users"
|
|
||||||
: "/users";
|
|
||||||
|
|
||||||
const API = axios.create({
|
const API = axios.create({
|
||||||
baseURL: apiBase,
|
baseURL: apiBase,
|
||||||
|
|||||||
@@ -19,10 +19,7 @@ function getCookie(name: string) {
|
|||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiBase =
|
const apiBase = import.meta.env.DEV ? "http://localhost:8081/users" : "/users";
|
||||||
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
||||||
? "http://localhost:8081/users"
|
|
||||||
: "/users";
|
|
||||||
|
|
||||||
const API = axios.create({
|
const API = axios.create({
|
||||||
baseURL: apiBase,
|
baseURL: apiBase,
|
||||||
|
|||||||
@@ -59,10 +59,7 @@ function getCookie(name: string) {
|
|||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiBase =
|
const apiBase = import.meta.env.DEV ? "http://localhost:8081/users" : "/users";
|
||||||
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
||||||
? "http://localhost:8081/users"
|
|
||||||
: "/users";
|
|
||||||
|
|
||||||
const API = axios.create({
|
const API = axios.create({
|
||||||
baseURL: apiBase,
|
baseURL: apiBase,
|
||||||
|
|||||||
@@ -50,10 +50,7 @@ interface VersionResponse {
|
|||||||
cache_age?: number;
|
cache_age?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiBase =
|
const apiBase = import.meta.env.DEV ? "http://localhost:8081" : "";
|
||||||
typeof window !== "undefined" && window.location.hostname === "localhost"
|
|
||||||
? "http://localhost:8081"
|
|
||||||
: "";
|
|
||||||
|
|
||||||
const API = axios.create({
|
const API = axios.create({
|
||||||
baseURL: apiBase,
|
baseURL: apiBase,
|
||||||
@@ -70,7 +67,7 @@ export function HomepageUpdateLog({loggedIn}: HomepageUpdateLogProps) {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
Promise.all([
|
Promise.all([
|
||||||
API.get('/releases/rss?per_page=100'),
|
API.get('/releases/rss?per_page=100'),
|
||||||
API.get('/version')
|
API.get('/version/')
|
||||||
])
|
])
|
||||||
.then(([releasesRes, versionRes]) => {
|
.then(([releasesRes, versionRes]) => {
|
||||||
setReleases(releasesRes.data);
|
setReleases(releasesRes.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user