diff --git a/web/components/DownloadApiLogs.ce.vue b/web/components/DownloadApiLogs.ce.vue index 6f58a88b9..ac43863e1 100644 --- a/web/components/DownloadApiLogs.ce.vue +++ b/web/components/DownloadApiLogs.ce.vue @@ -3,7 +3,7 @@ import { storeToRefs } from 'pinia'; import { ArrowDownTrayIcon, ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid'; import { useI18n } from 'vue-i18n'; -import { DEV_GRAPH_URL, CONNECT_FORUMS, CONTACT, DISCORD } from '~/helpers/urls'; +import { CONNECT_FORUMS, CONTACT, DISCORD, GRAPHQL } from '~/helpers/urls'; import { useServerStore } from '~/store/server'; import 'tailwindcss/tailwind.css'; import '~/assets/main.css'; @@ -12,7 +12,7 @@ const { t } = useI18n(); const { apiKey } = storeToRefs(useServerStore()); -const downloadUrl = computed(() => new URL(`/graphql/api/logs?apiKey=${apiKey.value}`, DEV_GRAPH_URL.toString() || window.location.origin)); +const downloadUrl = computed(() => new URL(`/graphql/api/logs?apiKey=${apiKey.value}`, GRAPHQL));