Stoplight being stupid with BaseURL

This commit is contained in:
Katos
2025-03-22 16:49:16 +00:00
committed by GitHub
parent 91fde1e3d7
commit 733d1c5f77

View File

@@ -10,6 +10,9 @@ import { useData } from 'vitepress';
// Reactive key for re-rendering the elements-api component
const componentKey = ref(0);
// Set BaseURL
const BaseURL = "https://demo.homebox.software/api";
// Access dark mode setting from VitePress
const { isDark } = useData();
const theme = ref(isDark.value ? 'dark' : 'light');
@@ -52,6 +55,6 @@ document.head.appendChild(elementStyle);
layout="responsive"
hideSchemas="true"
:data-theme="theme"
tryItBaseUrl="https://demo.homebox.software/api"
:tryItBaseUrl="demoBaseUrl"
/>
</client-only>