24 changed files with 107 additions and 61 deletions
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
import { conf } from "@/setup/config"; |
||||
import { useAuthStore } from "@/stores/auth"; |
||||
|
||||
export function useBackendUrl() { |
||||
export function useBackendUrl(): string | undefined { |
||||
const backendUrl = useAuthStore((s) => s.backendUrl); |
||||
return backendUrl ?? conf().BACKEND_URL; |
||||
} |
||||
|
@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
|
||||
export const APP_VERSION = import.meta.env.PACKAGE_VERSION; |
||||
export const DISCORD_LINK = "https://discord.movie-web.app"; |
||||
export const DISCORD_LINK = "https://discord.gg/gQYB6fGArX"; |
||||
export const GITHUB_LINK = "https://github.com/movie-web/movie-web"; |
||||
export const DONATION_LINK = "https://ko-fi.com/movieweb"; |
||||
export const GA_ID = "G-44YVXRL61C"; |
||||
export const BACKEND_URL = "https://backend.movie-web.app"; |
||||
export const BACKEND_URL = import.meta.env.VITE_BACKEND_URL; |
||||
|
Loading…
Reference in new issue