setup electron app for production
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { appConfig } from "@/config/env";
|
||||
import { useSessionStore } from "@/stores/session-store";
|
||||
import type { z } from "zod";
|
||||
import {
|
||||
@@ -218,7 +219,7 @@ class ApiClient {
|
||||
}
|
||||
|
||||
export const apiClient = new ApiClient({
|
||||
baseUrl: "https://orion.dev.flowy.live",
|
||||
baseUrl: appConfig.orionUrl,
|
||||
getToken: () => useSessionStore.getState().token,
|
||||
onUnauthorized: () => useSessionStore.getState().clearToken(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user